[CMake] Adding custom target to ALL_BUILD or Package

2011-01-13 Thread ariasgore
Hello, I have a doxygen custom target defined which works fine when executed manually in visual studio but since it is a custom command it is not added as dependency to ALL_BUILD and manually adding it as a dependency to PACKAGES fails. Is there a way to do that without the need of defining an e

[CMake] Exception flag missing on VS 2005

2010-02-01 Thread ariasgore
Hello, I am using VS 2005 with Cmake 2.6.3 and I cannot figure out how to control the exception unwind semantics. A project creates several sub projects which are static libs, dynamic dlls and executables. And altough no cmake file set the EHsc flag explicitly some of the projects have EHSc en

[CMake] SET_TARGET_PROPERTIES seem not to work

2009-09-04 Thread ariasgore
Hi, current situation: Main project includes two projects: project1 and project2. Both of them has identical piece of code: GET_TARGET_PROPERTY(CPF ${PROJECTNAME} COMPILE_FLAGS) IF(NOT CPF) SET(CPF "") ENDIF(NOT CPF) SET_T

[CMake] Why does Cmake never add libs when it comes to static linking?

2009-06-22 Thread ariasgore
Hello, I have some code that uses some libs in the following defined vars: # - # Add everything into executable # - ADD_LIBRARY(${PROJECTNAME1} ${sources}

[CMake] How to set different compiler flags for two projects in one solution

2009-06-22 Thread ariasgore
Hello, I have two projects in my solution where Project B depends on Project A. Unfortunately Project B requires completely different properties. I know that I can use SET_TARGET_PROPERTIES to add my specific compiler and linker flags but how can I remove specific compiler and linker flags for o

[CMake] How to get different compiler flags Two projects in one solution

2009-06-22 Thread ariasgore
-- GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opens

[CMake] Find Boost entirely fails on test

2009-06-18 Thread ariasgore
Hello, I have staticly compiled unit test lib of Boost::Test and would like to use CMake to link it static. But the evilness of the lib breaks somehow everyhing. I am doing sth like FIND_PACKAGE( Boost 1.39.0 COMPONENTS test) (with debug on) even if the script get the mentioned directory of my bo

[CMake] Visual Studio and dynamic project

2009-05-25 Thread ariasgore
Hello, I have a project which is supposed to be built as static and dynamic one. Visual studio has this annoying behaviour to add always a debug and a release directoriy to the output directory. So this is fixed by prefixing the path with ../ IF( CMAKE_GENERATOR MATCHES "Visual Studio" )