aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECMakeSettings.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/KDECMakeSettings.cmake')
-rw-r--r--kde-modules/KDECMakeSettings.cmake15
1 files changed, 12 insertions, 3 deletions
diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake
index 828a0b38..2ff8e029 100644
--- a/kde-modules/KDECMakeSettings.cmake
+++ b/kde-modules/KDECMakeSettings.cmake
@@ -1,6 +1,7 @@
-# KDE_SKIP_RPATH_SETTINGS
-# KDE_SKIP_BUILD_SETTINGS
-# KDE_SKIP_TEST_SETTINGS
+# The following variables can be set to TRUE to skip parts of the functionality:
+# KDE_SKIP_RPATH_SETTINGS
+# KDE_SKIP_BUILD_SETTINGS
+# KDE_SKIP_TEST_SETTINGS
################# RPATH handling ##################################
@@ -80,6 +81,14 @@ if(NOT KDE_SKIP_BUILD_SETTINGS)
# Enable automoc in cmake
set(CMAKE_AUTOMOC ON)
+ # under Windows, generate all executables and libraries into
+ # one common directory, so the executables find their dlls
+ if(WIN32)
+ set(ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
+ set(LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
+ set(RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
+ endif()
+
endif()
###################################################################