diff options
Diffstat (limited to 'examples/corelib/ipc')
-rw-r--r-- | examples/corelib/ipc/CMakeLists.txt | 14 | ||||
-rw-r--r-- | examples/corelib/ipc/localfortuneclient/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/corelib/ipc/localfortuneserver/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/corelib/ipc/sharedmemory/CMakeLists.txt | 6 |
4 files changed, 21 insertions, 11 deletions
diff --git a/examples/corelib/ipc/CMakeLists.txt b/examples/corelib/ipc/CMakeLists.txt index b134a3aa17..29a8d4f592 100644 --- a/examples/corelib/ipc/CMakeLists.txt +++ b/examples/corelib/ipc/CMakeLists.txt @@ -1,14 +1,12 @@ # Generated from ipc.pro. - +if(NOT TARGET Qt::Widgets) + return() +endif() if(QT_FEATURE_sharedmemory) add_subdirectory(sharedmemory) endif() - -if(TARGET Qt::Network) - - if(QT_FEATURE_localserver) - add_subdirectory(localfortuneserver) - add_subdirectory(localfortuneclient) - endif() +if(QT_FEATURE_localserver AND TARGET Qt::Network) + add_subdirectory(localfortuneserver) + add_subdirectory(localfortuneclient) endif() diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt index 4c011e751b..b65f8d224f 100644 --- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/corelib/ipc/localfortuneclient") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneclient") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt index 014df19185..b03dd74058 100644 --- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/corelib/ipc/localfortuneserver") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/localfortuneserver") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt index 6db5ea1a3b..13332bd381 100644 --- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt +++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt @@ -9,7 +9,11 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples/corelib/ipc/sharedmemory") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/corelib/ipc/sharedmemory") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) |