Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | endif() | 64 | endif() | ||
65 | 65 | | |||
66 | include_directories ( | 66 | include_directories ( | ||
67 | ${CMAKE_CURRENT_BINARY_DIR} | 67 | ${CMAKE_CURRENT_BINARY_DIR} | ||
68 | ${CMAKE_CURRENT_SOURCE_DIR}/daemon | 68 | ${CMAKE_CURRENT_SOURCE_DIR}/daemon | ||
69 | ) | 69 | ) | ||
70 | 70 | | |||
71 | add_definitions(-DQT_NO_KEYWORDS) | 71 | add_definitions(-DQT_NO_KEYWORDS) | ||
72 | add_definitions(-DQT_NO_FOREACH) | ||||
72 | if (EXISTS "${CMAKE_SOURCE_DIR}/.git") | 73 | if (EXISTS "${CMAKE_SOURCE_DIR}/.git") | ||
73 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) | 74 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) | ||
74 | endif() | 75 | endif() | ||
75 | add_subdirectory(daemon) | 76 | add_subdirectory(daemon) | ||
76 | add_subdirectory(kcmodule) | 77 | add_subdirectory(kcmodule) | ||
77 | add_subdirectory(doc) | 78 | add_subdirectory(doc) | ||
78 | 79 | | |||
79 | install( FILES powerdevil.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} ) | 80 | install( FILES powerdevil.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} ) | ||
80 | 81 | | |||
81 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) | 82 | feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) |