[CMake] Problem with pkg_check_modules and imlib2

2011-05-12 Thread David Demelier
IMLIB2_INCLUDE_DIRS:INTERNAL=/usr/local/include;/usr/local/include/freetype2 IMLIB2_LIBRARIES:INTERNAL=Imlib2 IMLIB2_LIBRARY_DIRS:INTERNAL=/usr/local/lib IMLIB2_LDFLAGS:INTERNAL=-L/usr/local/lib;-lImlib2 [...] Cheers, -- David Demelier ___ Powered by www.kitware.com Visit

Re: [CMake] Problem with pkg_check_modules and imlib2

2011-05-13 Thread David Demelier
On 13/05/2011 11:03, Michael Hertling wrote: On 05/12/2011 10:40 PM, David Demelier wrote: Hello, I have some trouble to link my project to the imlib2 library. The library is installed correctly and a command like : gcc test.c -o test `pkg-config --libs --cflags imlib2` works and link

[CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
, -- David Demelier ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow

Re: [CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
On 14/06/2011 17:22, David Demelier wrote: Hello, On FreeBSD the status of ncurses is particularly annoying. We have a old curses lib under /usr/lib/libcurses.so that does not provide ncurses functionalities. I tried the following CMakeLists.txt cmake_minimum_required(VERSION 2.8) project

[CMake] New Module: FindSDL_gfx.cmake

2011-06-29 Thread David Demelier
found as attachment is inspired by FindSDL_mixer.cmake because they are very similar. Cheers, -- David Demelier # Locate SDL_gfx library # This module defines # SDLGFX_LIBRARY, the name of the library to link against # SDLGFX_FOUND, if false, do not try to link to SDL # SDLGFX_INCLUDE_DIR, where

Re: [CMake] New Module: FindSDL_gfx.cmake

2011-07-06 Thread David Demelier
On 29/06/2011 21:49, David Demelier wrote: Hello cmake users, I don't know how users usually send new modules so I try by mail. I made a cmake module for SDL_gfx library (http://www.ferzkopp.net/Software/SDL_gfx-2.0/) It's not a SDL official library but it is popular and a lot of games

[CMake] Proper way to build static binaries

2011-09-15 Thread David Demelier
to be build as static ? Cheers, -- David Demelier ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org

[CMake] Problem with option() when in subdirectory

2011-09-18 Thread David Demelier
the demos build ON) if (BUILD_DEMOS) ... endif () Then when building the project a it will also enter the if BUILD_DEMOS conditional. What can I do now? :) Cheers, -- David Demelier ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Problem with option() when in subdirectory

2011-09-21 Thread David Demelier
On 18/09/2011 21:54, Alexander Neundorf wrote: On Sunday, September 18, 2011 02:42:49 PM Michael Wild wrote: On 09/18/2011 02:32 PM, Alexander Neundorf wrote: On Sunday, September 18, 2011 02:15:54 PM David Demelier wrote: Hello, I noticed that option() values are not checked when the option

[CMake] Don't export symbols but the one I want

2011-11-23 Thread David Demelier
is exported and I don't know any portable way to disable this. Does CMake can handle this problem and export some symbols without using ten thousand of #ifdef #endif in C files? Cheers, -- David Demelier -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com

[CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
Hello, I try to use CPack to create a Windows package using NSIS, it fails with: [100%] Built target sd-tris Run CPack packaging tool... CPack: Create package using NSIS CPack: Install projects CPack: - Run preinstall target for: sd-tris CPack: - Install project: sd-tris CPack: Create package

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
, the Windows menu entry executable points to ${CMAKE_INSTALL_PREFIX}/bin/sd-tris.exe while I installed the target directly in ${CMAKE_INSTALL_PREFIX} Cheers, On Wed, Jun 27, 2012 at 6:24 AM, David Demelier demelier.da...@gmail.com wrote: Hello, I try to use CPack to create a Windows package using NSIS

Re: [CMake] CPack and NSIS failure

2012-06-27 Thread David Demelier
2012/6/27 Eric Noulard eric.noul...@gmail.com: 2012/6/27 David Cole david.c...@kitware.com: Demelier David You can try:  set(CPACK_NSIS_EXECUTABLES_DIRECTORY .) before you include(CPack). This bug ( http://public.kitware.com/Bug/view.php?id=7828 ) was resolved by adding the

Re: [CMake] CPack and NSIS failure

2012-07-11 Thread David Demelier
On 28/06/2012 11:20, Eric Noulard wrote: 2012/6/27 David Demelier demelier.da...@gmail.com: Thanks for your help, it worked! Now, the last problem, I noticed that CPACK_PACKAGE_EXECUTABLES you can't set an icon, thus I used my own CreateShortCut and Delete with respectively

[CMake] Link something to future installed library

2013-03-10 Thread David Demelier
, -- David Demelier -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org

Re: [CMake] Link something to future installed library

2013-03-23 Thread David Demelier
Le mercredi 13 mars 2013 11:35:13 Martin Koller a écrit : On Tuesday 12 March 2013 20:53:21 David Demelier wrote: Thanks for your answer, however target_link_libraries() my modules to the target of core will link to the build binary directory as expected : markand@Melon .../src/magicstat

[CMake] Can't get debug symbols with Visual Studio 2012

2013-06-02 Thread David Demelier
Hi there, I try to compile my application using CMake + VS2012. Running with -DCMAKE_BUILD_TYPE=Debug will build with debug symbols, however when trying to debug VS2012 stills says break points won't be reached, no debug file has been loaded for this document. But before running I have :

[CMake] Configure never ends when changing compiler

2013-06-03 Thread David Demelier
Hi there, After doing a CMake generation, if I try to change the C compiler by doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but never ends, see : Installation directories: PREFIX /usr/local MANDIR /usr/local/share/man DOCDIR

Re: [CMake] Configure never ends when changing compiler

2013-06-03 Thread David Demelier
2013/6/3 Benjamin Eikel cm...@eikel.org: Am Montag, 3. Juni 2013, 12:08:19 schrieb David Demelier: Hi there, After doing a CMake generation, if I try to change the C compiler by doing cmake -DCMAKE_C_COMPILER=/usr/bin/clang it configures again but never ends, see : Installation directories

[CMake] Set CMAKE_LANG_FLAGS_* and overriding

2013-09-17 Thread David Demelier
Hello, I'm writing a C++11 project. To enable C++11 it requires some switches, such as -std=c++11. So for the moment, I have in my CMakeLists.txt: set(CMAKE_CXX_FLAGS -std=c++11) So with that, I'm sure that any build configuration will add this. However, with clang++, you need to pass an

[CMake] qt4_wrap_cpp: questions about TARGET option

2014-01-14 Thread David Demelier
Hello folks, I had a question a long time ago about the qt4_wrap_cpp and the target_include_directories commands. To explain the problem, I wanted to use target_include_directories to add include directories to dependent target easier. However I really wanted to use qt4_wrap_cpp and not AUTOMOC

[CMake] How to select components by default using CPack ?

2015-12-09 Thread David Demelier
expect to have one.js and two.js in the top-level directory. Can you please tell me what I'm doing wrong? Regards, -- David Demelier -- 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

[CMake] Include directories problem when cross compiling with MinGW

2016-09-02 Thread David Demelier
why it does not work with that because stdlib.h can be found as /usr/x86_64-w64-mingw32/include/stdilb.h. Do you have any clue? Regards, --  David Demelier -- 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] ExternalProject autotools with MSYS from a MinGW root project

2016-09-15 Thread David Demelier
Hello, I was guessing if it is possible to build a autotools based project that requires MSYS from a MinGW project. The ExternalProject could works but using the MinGW generator in the root projects requires to *not* have the sh.exe in the PATH. So I'm stuck on how to achieve this. Do you have

Re: [CMake] Include directories problem when cross compiling with MinGW

2016-09-19 Thread David Demelier
2016-09-12 23:22 GMT+02:00 Maciej Mrozowski <reave...@gmail.com>: > On piątek, 2 września 2016 13:12:27 CEST David Demelier wrote: > >> Do you have any clue? > > It seems your toolchain does not have include/library path built-in or they > are different that those it w

[CMake] FindBoost not finding MinGW libraries

2016-11-14 Thread David Demelier
Hello, I've installed boost under C:\env\mingw64 so I basically have the following content: - C:\env\mingw64\include\boost-1_62\boost\* - C:\env\mingw64\lib\libboost_libname-mgw62-1_62.dll(.a) I've also set the following environment variables: -

Re: [CMake] FindBoost not finding MinGW libraries

2016-11-15 Thread David Demelier
2016-11-14 16:00 GMT+01:00 Sergei Nikulov : > Add option -DBoost_ADDITIONAL_VERSIONS="1.62.00;1.62" to command line > or > Update you findboost.cmake module from CMake repository. I've tried the additional the variable with no luck. I've also updated CMake to 3.7 with no

[CMake] find_library returns the .dll on MinGW

2016-12-16 Thread David Demelier
Hello, I have the following files: D:/env/mingw64/lib/libzip.dll.a D:/env/mingw64/bin/libzip.dll The following environment: PATH=D:/env/mingw64/bin CMAKE_PREFIX_PATH=D:/env/mingw64 Using this: find_library( ZIP_LIBRARY NAMES zip libzip ) I got this in the CMakeCache.txt: //Path to

Re: [CMake] Correct handling of absolute/relative installation paths

2017-07-27 Thread David Demelier
Le 27/07/2017 à 13:08, Eric Noulard a écrit : 2017-07-27 12:28 GMT+02:00 David Demelier <demelier.da...@gmail.com <mailto:demelier.da...@gmail.com>>: Hello, I'm still trying to find a correct solution to handle user specified installation paths. Let's consi

[CMake] Correct handling of absolute/relative installation paths

2017-07-27 Thread David Demelier
e absolute, especially on Windows. What are your thoughts on that, recommandations? Regards, -- David Demelier -- 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

Re: [CMake] Contribute Find-module to CMake vs Config-file to upstream

2018-05-23 Thread David Demelier
On Mon, 2018-05-21 at 19:39 +0200, Mateusz Loskot wrote: > Hi, > > I've been recently trying to update/add Find-modules to CMake: > updated FindJPEG, proposed FindODBC and most recently FindLZ4. > > Discussion during review of the FindLZ4 [1] ended with some > surprising > conclusions which I,

Re: [CMake] Recommandations for public custom macro/functions installation

2018-04-17 Thread David Demelier
On Tue, 2018-04-17 at 12:25 +0200, Johannes Zarl-Zierl wrote: > Just replying to this topic of your message: you may want to > reconsider. The > cmake gui allows you to group options automatically by prefix. This > de-clutters > the options considerably. I didn't know that! Nice catch. I'll

[CMake] Recommandations for public custom macro/functions installation

2018-04-17 Thread David Demelier
Hello, In my application I have some custom functions that help the process of creating executable, libraries, plugins and such. They don't do magic things but they mostly build, provide installation to specific place and optionally build the documentation and install them as well. This happens

[CMake] Can't find Boost with Visual Studio 2017

2018-03-17 Thread David Demelier
I can't understand what I am missing because it's not the first time I use boost on Windows though. I've tried set BOOST_ROOT to the same value as CMAKE_PREFIX_PATH with no results. -- David Demelier -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http:

Re: [CMake] Can't find Boost with Visual Studio 2017

2018-03-19 Thread David Demelier
On Sat, 2018-03-17 at 23:15 +0100, Volker Enderlein wrote: > Hi David, > > Boost changed its naming scheme starting from version 1.66. So its > not > your fault but the FindBoost.cmake does not know how to handle the > new > scheme. Try to use one of the 3.11.0-rc[1-3] versions that has the >

[CMake] Regarding creation of APK through CMake (CMakeAPK idea)

2018-10-23 Thread David Demelier
Hello, I'm currently experimenting Android development with CMake without using gradle, Android Studio, ant or anything else. The idea is to use Android's sdk-tools only (aapt, dx, zipalign, apksigner). The process isn't that hard but consists of several steps. The only real question is how

Re: [CMake] Error using sudo ./bootstrap && make && make install

2018-10-17 Thread David Demelier
Le 16/10/2018 à 23:04, Frank Tocci a écrit : Hello, I am trying to install Cmake and I am running into an error when I enter the install directory and run sudo ./bootstrap && make && make install as specified in the README file Hello, You're not supposed to do sudo bootstrap. You should

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread David Demelier
Le 20/11/2018 à 17:03, Harry Mallon a écrit : Hi, FindGTK and FindGTK2 exist in the CMake tree. How come there isn't one for GTK3? Should the GTK2 one work, or is there another way? GNOME people don't like CMake (they use meson). The philosophy behind CMake is to let upstream projects

Re: [CMake] How to find GTK3 in CMake

2018-11-21 Thread David Demelier
Le 21/11/2018 à 10:19, Jan Wielemaker a écrit : Good. I was already considering providing a cmake file after migrating SWI-Prolog to cmake. Are there good guidelines for this? Pkg-config asks for providing a .pc file and installing in a well-known place. Is there a similar place for project

Re: [CMake] How to support separate debug and release build directories?

2019-06-21 Thread David Demelier
Le 21/06/2019 à 15:19, David Aldrich a écrit : I now want to support separate target directories: build/debug and build/release.  I've shown my CMakeLists.txt below. So far I've just added an attempt to support build/debug: if (CMAKE_BUILD_TYPE EQUAL "DEBUG")     message("debug mode")    

Re: [CMake] How to support separate debug and release build directories?

2019-06-21 Thread David Demelier
Le 21/06/2019 à 15:42, David Aldrich a écrit : Do never test CMAKE_BUILD_TYPE in CMakeLists.txt files, it is ignored in multiple generators (e.g. Visual Studio). Does that mean I shouldn't have this in CMakeLists.txt? : # Specify a Release build by default if(NOT CMAKE_BUILD_TYPE)