Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 36 Lines | 36 | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |||
---|---|---|---|---|---|
37 | if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8") | 37 | if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8") | ||
38 | message(SEND_ERROR "Version ${CMAKE_CXX_COMPILER_VERSION} of the ${CMAKE_CXX_COMPILER_ID} C++ compiler is not supported. Please use version 4.8 or later.") | 38 | message(SEND_ERROR "Version ${CMAKE_CXX_COMPILER_VERSION} of the ${CMAKE_CXX_COMPILER_ID} C++ compiler is not supported. Please use version 4.8 or later.") | ||
39 | endif() | 39 | endif() | ||
40 | endif() | 40 | endif() | ||
41 | 41 | | |||
42 | set(KDECORATION2_INCLUDEDIR "${KDE_INSTALL_INCLUDEDIR}/KDecoration2") | 42 | set(KDECORATION2_INCLUDEDIR "${KDE_INSTALL_INCLUDEDIR}/KDecoration2") | ||
43 | find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED) | 43 | find_package(KF5I18n ${KF5_MIN_VERSION} CONFIG REQUIRED) | ||
44 | if (EXISTS "${CMAKE_SOURCE_DIR}/.git") | 44 | if (EXISTS "${CMAKE_SOURCE_DIR}/.git") | ||
45 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) | 45 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
46 | add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000) | 46 | add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x060000) | ||
47 | endif() | 47 | endif() | ||
48 | 48 | | |||
49 | # Subdirectories | 49 | # Subdirectories | ||
50 | add_subdirectory(src) | 50 | add_subdirectory(src) | ||
51 | if(BUILD_TESTING) | 51 | if(BUILD_TESTING) | ||
52 | add_subdirectory(autotests) | 52 | add_subdirectory(autotests) | ||
53 | endif() | 53 | endif() | ||
Show All 27 Lines |