[CMake] Noob question

2008-08-11 Thread alpha_one_x86
I have try this: # Options for debug level if(NOT DEFINED ${DEBUG_LEVEL}) add_definitions(-DDEBUG=0) else(NOT DEFINED ${DEBUG_LEVEL}) add_definitions(-DDEBUG=${DEBUG_LEVEL}) endif(NOT DEFINED ${DEBUG_LEVEL}) With the command line: cmake -DDEBUG_LEVEL=50 ./ That's not work, why?

[CMake] KDE3 apps

2008-08-10 Thread alpha_one_x86
I have try it: if(KDE4_FOUND) set (QTONLY FALSE CACHE BOOL "Determines if we should compile for Qt only.") ADD_DEFINITIONS(-DKDE_VERSION=4.0) else(KDE4_FOUND) if(KDE3_FOUND) set (QTONLY FALSE CACHE BOOL "Determines if we should compile for Qt only.") ADD_DEFINITIONS(-DKDE_VERSION=3.