[CMake] cpp macro

2018-06-04 Thread Stéphane Ancelot
hi is there a mactro for cpp ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please

Re: [CMake] cpp macro

2018-06-05 Thread Stéphane Ancelot
Le 04/06/2018 à 10:16, Eric Noulard a écrit : Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : hi is there a mactro for cpp ? You mean a CMake variable which would contain the path to C preprocessor binary? I don't think so, a

[CMake] cmake - node-gyp

2018-06-27 Thread Stéphane Ancelot
Hi, I am trying to migrate an existing Makefile to cmake that is using node-gyp. I have had a binding.gyp file that would need being generated with the libraries paths aqnd include paths. The problem is that I don't know how to do this. The final binding.gyp file should look as follow :

[CMake] using ExternalProject_Add when cmake is launched

2018-05-02 Thread Stéphane Ancelot
Hi, I have got some win32 libraries dependencies stored in a project . Then I added ExternalProject_Add at beginning of my cmakelists file in order to clone this dependency to be available. and then provide the root path as follow: SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc

Re: [CMake] using ExternalProject_Add when cmake is launched

2018-05-02 Thread Stéphane Ancelot
You probably need to manually add a dependency from your ExternalProject to your target that needs the libraries. For instance ExternalProject_Add(fetch_win32_libs ...) add_library(your_other_target ...) Greetings Kai Wolf http://kai-wolf.me/ kai.w...@gmail.com <mailto:kai.w...@gmail.com>

[CMake] recusively calling make install

2018-02-26 Thread Stéphane Ancelot
Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can run make install in each project directory, but not from the top CMake directory in src dir how to propagate

Re: [CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
Le 31/08/2018 à 16:31, Eric Noulard a écrit : Le ven. 31 août 2018 à 15:59, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : I ended with : add_custom_target(combined ALL    COMMAND ${CMAKE_AR} rc libcombined.a $ $) Quick & dirty :-) There is

Re: [CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
want. Le ven. 31 août 2018 à 15:17, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, I have got some static libraries generated, that  I would like to put in a common one. how can I proceed ? Regards, S.Ancelot -- P

[CMake] overriding -03 -DNDEBUG Release flags

2018-09-10 Thread Stéphane Ancelot
Hi, In one project I need to compile with -O2 option , how to set it and remove -O3 -DNDEBUG flags for this project ? Regards, Steph -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various

[CMake] creating a library from other one

2018-08-31 Thread Stéphane Ancelot
Hi, I have got some static libraries generated, that  I would like to put in a common one. how can I proceed ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services

[CMake] toolchain

2018-03-06 Thread Stéphane Ancelot
Hi, My project needs being compiled for different targets : win32 (linux mingw32) / linux64 (Opensuse 13.2) / linux32 (Ubuntu 10.04) using toolchain is the right option isn't it ??? some people told me it was deprecated ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep

[CMake] swig module add -fPIC flag

2018-04-25 Thread Stéphane Ancelot
Hi, I have not found how to add -fPIC link flag to a SWIG module. Regards S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more

Re: [CMake] adding cmake managed external projects with their config

2018-03-26 Thread Stéphane Ancelot
Le 23/03/2018 à 17:18, Stéphane Ancelot a écrit : Hi, I have an experimental Bullet package I would like to use, but I don't manage to override the system CMAKE_MODULE_PATH for bullet to use the new one. I tried using ExternalProject_Add (Bullet   SOURCE_DIR "bullet3/build_

[CMake] adding cmake managed external projects with their config

2018-03-23 Thread Stéphane Ancelot
Hi, I have an experimental Bullet package I would like to use, but I don't manage to override the system CMAKE_MODULE_PATH for bullet to use the new one. I tried using ExternalProject_Add (Bullet   SOURCE_DIR "bullet3/build_cmake") but this does not seem the RIGHT way... Overriding

[CMake] using external library

2018-03-05 Thread Stéphane Ancelot
Hi, I need some external libraries in my project (eg a particular version of qt..) These external projects have been cloned locally , I could use ExternalProject_Add to clone it in my project. My major problem is that I will compile it each time and this is time and disk usage  consuming,

Re: [CMake] recusively calling make install

2018-02-26 Thread Stéphane Ancelot
found:that was because of a project that was not compiling Le 26/02/2018 à 09:52, Stéphane Ancelot a écrit : Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can

[CMake] Howot add jar files in final jar file

2018-10-22 Thread Stéphane Ancelot
Hi, I have to package some jar files in the final jar. I can compile it with add_jar specifying INCLUDE_JARS but unfortunately, they are not added to the final target jarfile Regards S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] java_home usage

2018-10-22 Thread Stéphane Ancelot
oct. 2018 à 10:16, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, If I set java_home in cmake 3.12 , Java_JAVAC_EXECUTABLE is not using my java_home env but /usr/bin/javac what is wrong ? Regards, S.Ancelot -- P

[CMake] java_home usage

2018-10-22 Thread Stéphane Ancelot
Hi, If I set java_home in cmake 3.12 , Java_JAVAC_EXECUTABLE is not using my java_home env but /usr/bin/javac what is wrong ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers

Re: [CMake] cmake 3.12 - python libs / 32 / 64 bits

2018-11-15 Thread Stéphane Ancelot
nov. 2018 à 14:06, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, My system is 64 bits but I can cross compile python c modules for 32 bits . Unfortunately I don't manage to retrieve python 32 libs , always the 64 bits version is found.

[CMake] cmake 3.12 - python libs / 32 / 64 bits

2018-11-14 Thread Stéphane Ancelot
Hi, My system is 64 bits but I can cross compile python c modules for 32 bits . Unfortunately I don't manage to retrieve python 32 libs , always the 64 bits version is found. here is what I tried : cmake_minimum_required(VERSION 3.10) project(py_autom) set(CMAKE_SYSTEM_PROCESSOR "i686")

Re: [CMake] CMake Cookbook is out!!

2018-09-28 Thread Stéphane Ancelot
Hi, Noisy, Unfortunately, at this time, there is only a table of contents . Regards, S.Ancelot Le 27/09/2018 à 20:26, Eric Noulard a écrit : Hi CMakers, Hi try not do that too often but here comes a little promotion for a book which (I think) deserve attention. The CMake Cookbook by 

Re: [CMake] Happy Birthday CMake!

2018-09-03 Thread Stéphane Ancelot
Congratulations. Really a great work. Le 31/08/2018 à 20:33, Bill Hoffman a écrit : http://public.kitware.com/pipermail/insight-developers/2000-August/024248.html Thanks to everyone that has contributed or used CMake! -Bill -- Powered by www.kitware.com Please keep messages

[CMake] cmake with vscode

2019-01-22 Thread Stéphane Ancelot
Hi, I have got some problems finding packages under windows platform. I made a toolchain for VSCode and cmake 3.13 , but I don't understand why it fails to find almost all of my packages dependencies It is not able to find packages in the CMAKE_FIND_ROOT_PATH itself. If I try setting

[CMake] linked dependencies in exported cmake package

2018-12-03 Thread Stéphane Ancelot
Hi, I made an exported package for a library that needs linking qt5. find_package() works to find my library , however, I don't know how to handle the linking of external libs needed by this package. I suppose that must be managed inside the exported package, by which way ? Regards,

[CMake] linking FetchContent library

2019-04-10 Thread Stéphane Ancelot
Hi, are there any specific Cmake configurations to setup in projects when using fetchcontent. I am able to fetch and build a library but not able to link and include files of this library in another projects. include(FetchContent) FetchContent_Declare(   jconcpp   GIT_REPOSITORY

[CMake] Finding custom qmake path

2019-09-03 Thread Stéphane Ancelot
Hi, Is there a way to find qmake path of a custom setup in order using it an add_custom_command my QT5 path is available in CMAKE_PREFIX_PATH. Regards,, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] Finding custom qmake path

2019-09-03 Thread Stéphane Ancelot
I solved it using |get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)| Le 03/09/2019 à 15:05, Stéphane Ancelot a écrit : Hi, Is there a way to find qmake path of a custom setup in order using it an add_custom_command my QT5 path is available in CMAKE_PREFIX_PATH

[CMake] find_path / find_package hardcoded path

2019-08-28 Thread Stéphane Ancelot
Hi, using mingw32 with win10 , I can not manage to find jpeg libs . I tried setting JPEG_DIR, it fails. it also fails setting CMAKE_FIND_ROOT_PATH set(JPEG_DIR c:\\work\\WIN32DEPS\\jpegfolder) find_path(JPEG_INCLUDE_DIR jpeglib.h) fails find_package(JPEG ) fails what is the right way to

[CMake] using fetch_content imported modules and not system one

2019-08-29 Thread Stéphane Ancelot
hi, i used fetch_content to download bullet library , but I cant use it. FetchContent_Declare(   bullet   GIT_REPOSITORY https://github.com/bulletphysics/bullet3.git   GIT_TAG    2.88 ) FetchContent_GetProperties(bullet) if(NOT bullet_POPULATED)   FetchContent_Populate(bullet)  

[CMake] can not import target external lib before being build

2019-09-12 Thread Stéphane Ancelot
Hi, I am using this cmake snippet in order to build an external library # -- QGLViewer -- set(QGLVIEWER_FILES ${CMAKE_BINARY_DIR}/libQGLViewer-2.7.1/QGLViewer/qglviewer.h) get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION) add_custom_command(OUTPUT

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Stéphane Ancelot
Hi, That first depends on which compiler you will use ? Regards, S.Ancelot Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a écrit : Hi guys. I am trying to generate,using cmake, a executable with target Windows 32 bits using Windows 64 bits, but cannot find a standard toolchain file (I

[CMake] modifying cmake_build_type cflags per target

2019-11-19 Thread Stéphane Ancelot
Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Regards, S.Ancelot -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information

[CMake] finding cdk

2019-10-14 Thread Stéphane Ancelot
Hi, I have got some problems finding cdk lib in my debian system I used find_library without success libcdk can be found in /usr/lib/x86_64-linux-gnu/ and cdk in include system path cdk/cdk.h Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the

[CMake] msys2-mingw64 cmake gives undefined behaviour, can not find include header

2019-12-19 Thread Stéphane Ancelot
Hi, Migrating a code to msys2 compilation (cmake inside msys ), it does not find an include file for unknwon reason. the file is located in a project defined as follow: cmake_minimum_required(VERSION 3.10) project(include_commun) add_library(include_commun INTERFACE)

[CMake] exporting and using an exported package in the same project

2020-02-14 Thread Stéphane Ancelot
Hi, I am trying to use a third party library (https://github.com/zaphoyd/websocketpp) It exports a Config.cmake file when building , but I want to use it from my workspace in which I cloned it . I tried using find_package(websocketpp CONFIG), but cmake replies websocketpp_DIR not found.