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?
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.