Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 32 Lines | |||||
33 | # require at least gcc 4.8 | 33 | # require at least gcc 4.8 | ||
34 | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | 34 | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
35 | if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8") | 35 | if ("${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "4.8") | ||
36 | 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.") | 36 | 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.") | ||
37 | endif() | 37 | endif() | ||
38 | endif() | 38 | endif() | ||
39 | 39 | | |||
40 | set(KDECORATION2_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/KDecoration2") | 40 | set(KDECORATION2_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/KDecoration2") | ||
41 | find_package(KF5I18n CONFIG REQUIRED) | ||||
41 | 42 | | |||
42 | # Subdirectories | 43 | # Subdirectories | ||
43 | add_subdirectory(src) | 44 | add_subdirectory(src) | ||
44 | add_subdirectory(autotests) | 45 | add_subdirectory(autotests) | ||
45 | 46 | | |||
46 | # create a Config.cmake and a ConfigVersion.cmake file and install them | 47 | # create a Config.cmake and a ConfigVersion.cmake file and install them | ||
47 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KDecoration2") | 48 | set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KDecoration2") | ||
48 | 49 | | |||
Show All 17 Lines |