Dear All,
I am learning CMake, and one of my personal lessons is combine Java
and CMake. I made a small example (HelloWorld.java):
==
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hey :)");
}
}
==
And a CMakeLists.txt
Maybe you should add something like
> include_directories(${OPENSSL_INCLUDE_DIR})
to your CMakeLists.txt ?
2016-06-03 10:27 GMT-04:00 Lowekamp, Bradley (NIH/NLM/LHC) [C]
:
> Hello,
>
> I am trying to build CMake on an old system with a new version of openssl.
> My build
Hey guys,
I am creating a RPM package with CMake. Here is a small example of how it
looks:
cmake_minimum_required(VERSION 3.5)
set(BOOST_LIB "${CMAKE_CURRENT_SOURCE_DIR}/boost")
file(GLOB_RECURSE BOOST_LIBRARIES ${BOOST_LIB}/*)
install(FILES
Thanks for all answers. I had to read the documentation before asking :-D
I changed the line for the executable from
> install(FILES ...
into
> install(PROGRAMS ...
That worked and as far as i can see is sufficient for my requirements.
2016-06-08 20:09 GMT+02:00 Domen Vrankar
What's the meaning of the bootstrap executable? I thought, when compiling
CMake, it is sufficient to call ./configure and then make...
2016-06-07 15:13 GMT-04:00 Brad King :
> On 06/07/2016 10:58 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C] wrote:
> > I tried out the
Hey guys,
I wanted to try something out with CMake and latest version of freetype
(2.6.3). So I downloaded freetype, compiled it with the commands
> ./configure --prefix=/home/kristian/Documents/freetype/freetype
> make
> make install
After that, I created a small C++-file and a CMake
Hey Andreas,
thanks for your answer. Yes, that also works :)
2016-06-07 16:58 GMT-04:00 Andreas Naumann <andreas-naum...@gmx.net>:
> Hey Kristian,
>
> as the documentation
> https://github.com/Kitware/CMake/blob/master/Modules/FindFreetype.cmake
> at line 21
After some tries I found maybe a solution for you. In my small example, I
had these lines, which are working:
> set(HELLO1 "C:/Program Files (x86)/Microsoft Visual Studio
14.0/VC/vcvarsall.bat")
> execute_process(COMMAND ${HELLO1} && msbuild /help WORKING_DIRECTORY
"${CMAKE_CURRENT_SOURCE_DIR}")
Could you give us either the CMakeLists.txt or the whole cl command, which
was called?
Without of some more information, I could not give you a hint, where the
problem is.
2016-06-15 14:43 GMT-04:00 Welson Sun :
> cmake 3.4.3 on windows 7 targeting vs2015 error out:
>
> cl
I have some questions for clarification:
Which CMake-Version do you use?
Which OS do you use? And where is the output of CMake written to?
2016-06-18 8:31 GMT-04:00 Ilias Miroslav :
> Dear experts,
>
>
> we are employing CMake buildup system in our project
>
Hey,
I have a small C++ file, which uses some functions of the library
bzip2. On a Debian derivate, I have installed needed packages with
* sudo apt-get install bzip2 libzip2 libbz2-dev
Here is my CMakeLists.txt:
=
project(bzip2Example)
Hey,
I have a question. I have read the article about functions:
https://cmake.org/cmake/help/v3.0/command/function.html
I tried to write myself a very simple function (nothing special)
function(test_me add1 add2)
message("test_me")
You were right. Thank you!
2016-02-28 22:12 GMT+01:00 Nils Gladitz <nilsglad...@gmail.com>:
> On 28.02.2016 21:57, Kristian wrote:
>>
>> [...]
>>
>>
>> test_me(1 2 3)
>>
Thank you for your answer. Setting the variable
CPACK_RPM_PACKAGE_AUTOREQ to "NO" worked.
I also tried to produce a minimal example, which produces such error
as the behaviour I described. But I couldn't generate such an example.
I do not know currently, under which circumstances this happens :(.
*
then installation of my very simple project works and I am not getting
any dependency resolution errors.
-- Forwarded message --
From: Kristian <kristianonlin...@gmail.com>
Date: 2016-04-07 0:50 GMT+02:00
Subject: CPack does not generate a RPM
To: cmake@cmake.org
H
Hi,
I have an error and I do not know, how to solve this error.
I have an archive, where are some files. I want to generate a rpm
package with the files, which are in that archive. So first, I extract
that archive with a bash script. After that, the script calls "cpack
-G RPM -V ." for this
I'm not sure, but I think, you should consider 'set_target_properties'
(https://cmake.org/cmake/help/v3.0/command/set_target_properties.html).
E.g.
target_link_libraries(my_target source1.cpp source2.cpp)
set_target_properties(my_target PROPERTIES LINK_FLAGS "\openmp")
2016-04-12 17:29
tachment? Or maybe I shall send
> the attachment only to you two?
>
> Wang Peng (Rex)
> Seat: 21F
> HZ SE Team
> +86018605811125
>
> -Original Message-
> From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of EXT Kristian
> Sent: Friday, April 08, 2016 5:16
Hey,
I have a question. I have a project, which is compiled on two
different build machines with ninja (trunk and branch). The
CMakeLists.txt is the same when it comes to a part, where the VERSION
and SOVERSION part is set through the function
'set_target_properties'.
But on the first build
Thank you for your answer. It helped me a lot.
2016-04-04 12:07 GMT+02:00 Nils Gladitz <nilsglad...@gmail.com>:
> On 04/04/2016 10:33 AM, Kristian wrote:
>>
>> Hey,
>>
>> I have a question. I have a project, which is compiled on two
>> different buil
Did you already tried to use the "Visual Studio 10 2010 Win64" generator?
*
https://cmake.org/cmake/help/v3.6/generator/Visual%20Studio%2010%202010.html
* https://cmake.org/cmake/help/v3.6/manual/cmake-generators.7.html
2016-08-22 9:27 GMT+02:00 tonka tonka :
> Hey,
>
> I
> Do you have any special reason why your rename target depends on PACKAGE,
is this the target which cpack is using?
I think so ...
2016-08-26 20:01 GMT+02:00 tonka3...@gmail.com <tonka3...@gmail.com>:
> Hey Kristian,
>
> Thx for your answer. Iv've already done this like i
Hey,
you're working on Windows, right?
I think you can do that if you create an additional target and call that
target. So let's say, you have this 'hello.cpp', and you generate with
CMake a solution. This is an example of a CMakeLists.txt
> cmake_minimum_required(VERSION 3.4)
>
Hi,
I create a RPM package with CPack. When installing this package on a
target system, it should create an additional user and group.
My current solution is a postinstall script, wich runs at the end of
the installation. There, I added commands to create a user and a group
(groupadd, useradd).
rinted during installation:
=
Group 'web1' added with id ''
useradd: group '' does not exist
User 'web1' added.
=
2017-07-20 11:17 GMT+02:00 Eric Noulard <eric.noul...@gmail.com>:
>
>
>
> 2017-07-20 10:39 GMT+02:00 Kristian <kristianonlin...@gmail.com>:
>>
hank you for your help. :)
2017-07-20 12:35 GMT+02:00 Eric Noulard <eric.noul...@gmail.com>:
>
>
> 2017-07-20 12:01 GMT+02:00 Kristian <kristianonlin...@gmail.com>:
>>
>> Hi,
>>
>> thank you for your reply. Yes, I add the script wit
Hi,
I am creating an RPM package, which on a standard installation should
install the file into /opt/ssp-suite directory. But I want to give the
user the opportunity, to install the package into another directory.
I am doing this with these lines:
> set(INSTALL_DIR
Thank you, that helped!
2017-05-09 15:24 GMT+02:00 Domen Vrankar :
>> Transaction check error:
>> file /opt from install of ssp-suite-7.1-1.x86_64 conflicts with file
>> from package filesystem-3.2-21.el7.x86_64
>>
>> Error Summary
>
>
> Directory /opt is already owned
Hi,
I want to generate a RPM package. My CMakeLists.txt looks loke this:
##
cmake_minimum_required(VERSION 3.5)
set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp/)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ssp-suite/" DESTINATION
${INSTALL_DIR})
install(PROGRAMS
Hi,
I have a Visual Studio 2015 Solution with some C++ projects in it. I
try to generate the same solution and the projects with CMake. Now,
there is a part, where I do not know how to solve this.
In a vcxproj file, there is something like this written:
=
false
false
), there is an implicit link of B into a
implied. I wonder if there is a way to generage that with CMake, I tried just
replacing TARGET_LINK_LIBRARIES with ADD_DEPENDENCIES, but that did not seem
to work? I'll play a bit more with it and see if I can find something that
works.
- Kristian.
--
Kristian Nielsen
31 matches
Mail list logo