[CMake] force c++

2006-04-05 Thread Axel Roebel
Hello, does anybody know how I may force the use of a c++ compiler for source files with .c extension? Before I start renaming nearly 100 files and loose all the cvs history I would prefer a solution where cmake would allow me to select a compiler for the part of the files that require c++ compil

Re: [CMake] dlopen()able library making

2006-04-05 Thread Craig Bradney
On Wednesday 05 April 2006 15:24, you wrote: > At 08:54 AM 4/5/2006, Craig Bradney wrote: > >Simply so we can use filename.moc to include them in the original .cpp > > files without changing any source code. All files are run through moc and > > built ok. Perhaps this is the problem.. it wouldn't s

Re: [CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

2006-04-05 Thread Axel Roebel
On Wednesday 05 April 2006 19:03, Brad King wrote: > Axel Roebel wrote: > > On Wednesday 05 April 2006 14:19, Eric BOIX wrote: > >>Dear Brad King, > >> > >>Quoting Brad King <[EMAIL PROTECTED]>: > >>>To get options in the GUI they need to be cache settings. Use the CACHE > >>>form of the SET c

Re: [CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

2006-04-05 Thread Brad King
Axel Roebel wrote: On Wednesday 05 April 2006 14:19, Eric BOIX wrote: Dear Brad King, Quoting Brad King <[EMAIL PROTECTED]>: To get options in the GUI they need to be cache settings. Use the CACHE form of the SET command. IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE RelWithDebInf

Re: [CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

2006-04-05 Thread Axel Roebel
On Wednesday 05 April 2006 14:19, Eric BOIX wrote: > Dear Brad King, > > Quoting Brad King <[EMAIL PROTECTED]>: > > To get options in the GUI they need to be cache settings. Use the CACHE > > form of the SET command. > > > > IF(NOT CMAKE_BUILD_TYPE) > > SET(CMAKE_BUILD_TYPE RelWithDebInfo

[CMake] communicat variables from sub directories

2006-04-05 Thread Axel Roebel
Hello, I am trying to collect source file lists from sub directories into the main cmake cache. The idea is that the main directory gets a collection of all source files and header files such that it may run a doxygen whenever one of these files has changed. Imagine SET(DOCFILES "" CACHE INTE

Re: [CMake] still issues with environment variables

2006-04-05 Thread William A. Hoffman
At 04:38 PM 3/30/2006, Alexander Neundorf wrote: >Hi, > >if I remember correctly, there were problems with using $ENV{PATH} in >cmake files, since this would return windows-paths under windows, but >cmake needs "cmake" paths. >So now cmake cvs has FILE(SYSTEM_PATH ...), which reads the en

Re: [CMake] dlopen()able library making

2006-04-05 Thread William A. Hoffman
At 08:54 AM 4/5/2006, Craig Bradney wrote: >Simply so we can use filename.moc to include them in the original .cpp files >without changing any source code. All files are run through moc and built ok. >Perhaps this is the problem.. it wouldn't surprise me given I just hacked up >the original, e

Re: [CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

2006-04-05 Thread Brad King
Eric BOIX wrote: Dear Brad King, Quoting Brad King <[EMAIL PROTECTED]>: To get options in the GUI they need to be cache settings. Use the CACHE form of the SET command. IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build Configuration") ENDIF(NOT C

Re: [CMake] dlopen()able library making

2006-04-05 Thread Craig Bradney
On Wednesday 05 April 2006 13:36, William A. Hoffman wrote: > At 02:35 AM 4/5/2006, Craig Bradney wrote: > >SET(SCRIBUS_COLORWHEEL_PLUGIN "colorwheel") > >IF(QT_WRAP_CPP) > > SCRIBUS_QT_WRAP_CPP(${SCRIBUS_COLORWHEEL_PLUGIN} > >${COLORWHEEL_PLUGIN_MOC_CLASSES}) > >ENDIF(QT_WRAP_CPP) > > > >ADD_LIBR

Re: [CMake] CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE_INIT ...

2006-04-05 Thread Eric BOIX
Dear Brad King, Quoting Brad King <[EMAIL PROTECTED]>: > To get options in the GUI they need to be cache settings. Use the CACHE > form of the SET command. > > IF(NOT CMAKE_BUILD_TYPE) > SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING > "Build Configuration") > ENDIF(NOT CMAKE_

Re: [CMake] dlopen()able library making

2006-04-05 Thread William A. Hoffman
At 02:35 AM 4/5/2006, Craig Bradney wrote: >SET(SCRIBUS_COLORWHEEL_PLUGIN "colorwheel") >IF(QT_WRAP_CPP) > SCRIBUS_QT_WRAP_CPP(${SCRIBUS_COLORWHEEL_PLUGIN} >${COLORWHEEL_PLUGIN_MOC_CLASSES}) >ENDIF(QT_WRAP_CPP) > >ADD_LIBRARY(${SCRIBUS_COLORWHEEL_PLUGIN} MODULE ${COLORWHEEL_PLUGIN_SOURCES} >${