Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | |||||
59 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") | 59 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu90") | ||
60 | 60 | | |||
61 | add_definitions(-DQT_NO_FOREACH) | 61 | add_definitions(-DQT_NO_FOREACH) | ||
62 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 62 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
63 | # Subdirectories | 63 | # Subdirectories | ||
64 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | 64 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | ||
65 | ecm_install_po_files_as_qm(po) | 65 | ecm_install_po_files_as_qm(po) | ||
66 | endif() | 66 | endif() | ||
67 | | ||||
68 | find_package(QtWaylandScanner REQUIRED) | ||||
67 | add_subdirectory(src) | 69 | add_subdirectory(src) | ||
68 | 70 | | |||
69 | if (BUILD_TESTING) | 71 | if (BUILD_TESTING) | ||
70 | add_subdirectory(autotests) | 72 | add_subdirectory(autotests) | ||
71 | add_subdirectory(tests) | 73 | add_subdirectory(tests) | ||
72 | endif() | 74 | endif() | ||
73 | 75 | | |||
74 | # create a Config.cmake and a ConfigVersion.cmake file and install them | 76 | # create a Config.cmake and a ConfigVersion.cmake file and install them | ||
Show All 29 Lines |