diff options
Diffstat (limited to 'examples/corelib/threads/semaphores/CMakeLists.txt')
-rw-r--r-- | examples/corelib/threads/semaphores/CMakeLists.txt | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt index d94f1ba5b4..51638e0ff8 100644 --- a/examples/corelib/threads/semaphores/CMakeLists.txt +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -1,15 +1,25 @@ # Generated from semaphores.pro. -##################################################################### -## semaphores Binary: -##################################################################### - -add_qt_executable(semaphores - OUTPUT_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" - INSTALL_DIRECTORY "${INSTALL_EXAMPLESDIR}/corelib/threads/semaphores" - SOURCES - semaphores.cpp -) +cmake_minimum_required(VERSION 3.14) +project(semaphores LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") -#### Keys ignored in scope 1:.:semaphores.pro:<NONE>: -# CONFIG = "-app_bundle" "console" +find_package(Qt5 COMPONENTS Core) + +add_executable(semaphores + semaphores.cpp +) +target_link_libraries(semaphores PUBLIC + Qt::Core +) +install(TARGETS semaphores + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" +) |