Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Line(s) | 297 | if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") | |||
---|---|---|---|---|---|
303 | set(CMAKE_CXX_FLAGS_PROFILE | 303 | set(CMAKE_CXX_FLAGS_PROFILE | ||
304 | "-g3 -fno-inline -ftest-coverage -fprofile-arcs") | 304 | "-g3 -fno-inline -ftest-coverage -fprofile-arcs") | ||
305 | 305 | | |||
306 | # preprocessor definitions in case this is a debug build | 306 | # preprocessor definitions in case this is a debug build | ||
307 | set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_CXX_FLAGS_DEBUGFULL} -DQT_STRICT_ITERATORS -DKMM_DEBUG") | 307 | set(CMAKE_CXX_FLAGS_DEBUGFULL "${CMAKE_CXX_FLAGS_DEBUGFULL} -DQT_STRICT_ITERATORS -DKMM_DEBUG") | ||
308 | set(CMAKE_CXX_FLAGS_DEBUGKMM "${CMAKE_CXX_FLAGS_DEBUGFULL} -DKMM_DEBUG") | 308 | set(CMAKE_CXX_FLAGS_DEBUGKMM "${CMAKE_CXX_FLAGS_DEBUGFULL} -DKMM_DEBUG") | ||
309 | endif() | 309 | endif() | ||
310 | 310 | | |||
311 | # and a variable we can use in the build environment to detect debug builds | | |||
312 | if(CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]") | | |||
313 | set(KMM_DEBUG "1") | | |||
314 | endif() | | |||
315 | | ||||
316 | option(USE_MODELTEST | 311 | option(USE_MODELTEST | ||
317 | "Compile with ModelTest code (default=OFF)" OFF) | 312 | "Compile with ModelTest code (default=OFF)" OFF) | ||
318 | 313 | | |||
319 | add_feature_info("Model test" USE_MODELTEST "Generate modeltest code (for devs only).") | 314 | add_feature_info("Model test" USE_MODELTEST "Generate modeltest code (for devs only).") | ||
320 | 315 | | |||
321 | option(USE_QT_DESIGNER | 316 | option(USE_QT_DESIGNER | ||
322 | "Install KMyMoney specific widget library for Qt-Designer (default=OFF)" OFF) | 317 | "Install KMyMoney specific widget library for Qt-Designer (default=OFF)" OFF) | ||
323 | 318 | | |||
Show All 30 Lines |