Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 43 | if(SONNET_USE_WIDGETS) | |||
---|---|---|---|---|---|
45 | add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") | 45 | add_feature_info(DESIGNERPLUGIN ${BUILD_DESIGNERPLUGIN} "Build plugin for Qt Designer") | ||
46 | endif() | 46 | endif() | ||
47 | 47 | | |||
48 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | 48 | add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050d00) | ||
49 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | 49 | if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") | ||
50 | ecm_install_po_files_as_qm(po) | 50 | ecm_install_po_files_as_qm(po) | ||
51 | endif() | 51 | endif() | ||
52 | add_definitions(-DQT_NO_FOREACH) | 52 | add_definitions(-DQT_NO_FOREACH) | ||
53 | add_subdirectory(data) | ||||
53 | add_subdirectory(src) | 54 | add_subdirectory(src) | ||
54 | if (BUILD_TESTING) | 55 | if (BUILD_TESTING) | ||
55 | add_subdirectory(autotests) | 56 | add_subdirectory(autotests) | ||
56 | endif() | 57 | endif() | ||
57 | if (NOT CMAKE_CROSSCOMPILING) | | |||
58 | add_subdirectory(data) | | |||
59 | endif() | | |||
60 | 58 | | |||
61 | if(TARGET Qt5::Widgets) | 59 | if(TARGET Qt5::Widgets) | ||
62 | add_subdirectory(examples) | 60 | add_subdirectory(examples) | ||
63 | endif() | 61 | endif() | ||
64 | 62 | | |||
65 | 63 | | |||
66 | # create a Config.cmake and a ConfigVersion.cmake file and install them | 64 | # create a Config.cmake and a ConfigVersion.cmake file and install them | ||
67 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Sonnet") | 65 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5Sonnet") | ||
Show All 30 Lines |