Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 25 Lines | |||||
26 | 26 | | |||
27 | ecm_setup_version(PROJECT VARIABLE_PREFIX KWAYLAND | 27 | ecm_setup_version(PROJECT VARIABLE_PREFIX KWAYLAND | ||
28 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kwayland_version.h" | 28 | VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kwayland_version.h" | ||
29 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5WaylandConfigVersion.cmake" | 29 | PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5WaylandConfigVersion.cmake" | ||
30 | SOVERSION 5) | 30 | SOVERSION 5) | ||
31 | 31 | | |||
32 | # Dependencies | 32 | # Dependencies | ||
33 | set(REQUIRED_QT_VERSION 5.12.0) | 33 | set(REQUIRED_QT_VERSION 5.12.0) | ||
34 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Concurrent Gui) | 34 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Concurrent Gui WaylandClient) | ||
35 | | ||||
36 | find_package(QtWaylandScanner REQUIRED) | ||||
35 | 37 | | |||
36 | find_package(Wayland 1.15 COMPONENTS Client Server) | 38 | find_package(Wayland 1.15 COMPONENTS Client Server) | ||
37 | set_package_properties(Wayland PROPERTIES | 39 | set_package_properties(Wayland PROPERTIES | ||
38 | TYPE REQUIRED | 40 | TYPE REQUIRED | ||
39 | ) | 41 | ) | ||
40 | 42 | | |||
41 | find_package(WaylandScanner) | 43 | find_package(WaylandScanner) | ||
42 | 44 | | |||
Show All 16 Lines | |||||
59 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") | 61 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") | ||
60 | 62 | | |||
61 | add_definitions(-DQT_NO_FOREACH) | 63 | add_definitions(-DQT_NO_FOREACH) | ||
62 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 64 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
63 | # Subdirectories | 65 | # Subdirectories | ||
64 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | 66 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | ||
65 | ecm_install_po_files_as_qm(po) | 67 | ecm_install_po_files_as_qm(po) | ||
66 | endif() | 68 | endif() | ||
69 | | ||||
70 | find_package(QtWaylandScanner REQUIRED) | ||||
67 | add_subdirectory(src) | 71 | add_subdirectory(src) | ||
68 | 72 | | |||
69 | if (BUILD_TESTING) | 73 | if (BUILD_TESTING) | ||
70 | add_subdirectory(autotests) | 74 | add_subdirectory(autotests) | ||
71 | add_subdirectory(tests) | 75 | add_subdirectory(tests) | ||
72 | endif() | 76 | endif() | ||
73 | 77 | | |||
74 | # create a Config.cmake and a ConfigVersion.cmake file and install them | 78 | # create a Config.cmake and a ConfigVersion.cmake file and install them | ||
Show All 29 Lines |