[CMake] Nested Project()

2011-08-15 Thread klaas.holwerda
Hi, I have several nested directories, and each directory contains a CMakeLists.txt file. And most start with PROJECT( ) Where xxx is some name for what I like to contains some targets. In VC it is possible to create in the top solution, so called solution folders. Why does CMake not use

[CMake] add_definition??

2011-04-13 Thread klaas.holwerda
Hi, I use ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} ) to add flags for compilation like this: set( wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS} -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexceptions -fno-pcc-struct-return -fstrict-aliasing -Wall#all warnings

[CMake] N projects/packages that depend

2010-08-05 Thread klaas.holwerda
Hi, I have in my repository N projects/packages, that depend on each other. E.g. project 1 found with find_package( wxDocview ), needs to build first, before i can do project2. I can not generate all at once all cmake binary project files, since the project2, call find_package on project 1.

[CMake] Bug in Suffixes windows 2.6

2008-09-20 Thread klaas.holwerda
Hi, I think this is a bug, only the last version of FIND_PATH actually works. This is in Cmake 2.6 patch 0. Thanks, Klaas PROJECT( myproject ) FIND_PATH( DIRTOFIND ft2build.h c:/soft/freetype/GnuWin32 PATH_SUFFIXES_PATH include NO_DEFAULT_PATH ) MESSAGE( results in ${DIRTOFIND} )

[CMake] FindFreetype wrong?

2008-09-17 Thread klaas.holwerda
Hi, I want to use FIND_PACKAGE( FREETYPE ) on windows. But it looks like it does not work. If i change in FindFreetype.cmake: FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h $ENV{FREETYPE_DIR} NO_DEFAULT_PATH PATH_SUFFIXES include ) to this: FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build

Re: [CMake] CMake and Lua

2008-02-25 Thread klaas.holwerda
Ken Martin wrote: Which is why CMake has include, macro, foreach etc. which are all staples of a programming language. Right, much better to spend time on something else, and use Lua for all these things. Add wxLua , and the graphical interface becomes easy too. CMakeSetup is nice, but i

[CMake] linking just static or dynamix no mix.

2007-04-03 Thread klaas.holwerda
Hi, My own library, depends on wxWidgets, wxLua, wxstedit. The problem is that i need to link them all static or dynamic, not a mix of them. Now Cmake choosen dynamic above static when available, as i understood. But if for library there is no dynamic version available, this becomes a

Re: [CMake] IF how?

2007-02-20 Thread klaas.holwerda
Hi, The myvar is the outcome of something like this: EXEC_PROGRAM( sh ARGS ${wxWidgets_CONFIG_EXECUTABLE} ${CONFIG_TEST} --version OUTPUT_VARIABLE wxWidgets_PFVERSION RETURN_VALUEwxWidgets_WANTED_AVAILABLE ) IF ( NOT

Re: [CMake] how work dependencies

2007-02-19 Thread klaas.holwerda
Hoffman wrote: klaas.holwerda wrote: Hi, I always thought that Cmake did automatically rebuild libraries, within the same Cmake build, linked to my application. Like if i have several libraries created with ADD_LIBRARY() and linked to my end executable with TARGET_LINK_LIBARIES or just

Re: [CMake] MSYS + MINGW + wx-config.sh

2007-02-14 Thread klaas.holwerda
Werner Smekal wrote: Hi Klaas, I don't actually understand your problem correctly. As I understand you have MSYS, wxWidgets compiled with MSYS and want somehow call wx-config which is a bash script from the cmake file? Is this correct? I want to have the output of wx-config, which is a shell

[CMake] wxWidgets Find + Packages macros

2007-02-10 Thread klaas.holwerda
Hi Cmakers and users, I did an attempt to improve FindwxWidgets, and to add some macros to easily add packages based on something in the making called wxWidgets Packages. http://wxwpm.sourceforge.net/index.php The packages must be compiled in the same manner as the wxWidgets build that was

[CMake] compile header file for precompiled gcc headers

2006-12-17 Thread klaas.holwerda
Hi, I want to get gcc to use precompiled headers. From http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html i read that i need to compile a header file ( containing #includes to all others for instance ). I have this haeder file, how to compile it with Cmake? I tried

[CMake] EXECUTE_PROCESS to strip

2006-12-14 Thread klaas.holwerda
Hi I did read this, in release notes: * Allow EXECUTE_PROCESS to strip trailing white space Is this automatically or how does one do it? Thanks, Klaas ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake