From 09d355975a6b9d3f89da280627a71e46c606d563 Mon Sep 17 00:00:00 2001 From: Patrick Spendrin Date: Sat, 3 May 2014 00:52:11 +0200 Subject: use the correct global variables use CMAKE_[RUNTIME|ARCHIVE|LIBRARY]_OUTPUT_DIRECTORY. dlls and executables are built into the bin subdir and import & static libraries and plugins end up in the lib subdir of the build directory. REVIEW:117965 --- kde-modules/KDECMakeSettings.cmake | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'kde-modules/KDECMakeSettings.cmake') diff --git a/kde-modules/KDECMakeSettings.cmake b/kde-modules/KDECMakeSettings.cmake index c206ff82..0fc1a5a3 100644 --- a/kde-modules/KDECMakeSettings.cmake +++ b/kde-modules/KDECMakeSettings.cmake @@ -163,18 +163,19 @@ if(NOT KDE_SKIP_BUILD_SETTINGS) unset(EXECUTABLE_OUTPUT_PATH) unset(LIBRARY_OUTPUT_PATH) - unset(ARCHIVE_OUTPUT_DIRECTORY) - unset(LIBRARY_OUTPUT_DIRECTORY) - unset(RUNTIME_OUTPUT_DIRECTORY) - - # under Windows, generate all executables and libraries into - # one common directory, so the executables find their dlls + unset(CMAKE_ARCHIVE_OUTPUT_DIRECTORY) + unset(CMAKE_LIBRARY_OUTPUT_DIRECTORY) + unset(CMAKE_RUNTIME_OUTPUT_DIRECTORY) + + # under Windows, output all executables and dlls into + # one common directory, and all static|import libraries and plugins + # into another one. This way test executables can find their dlls + # even without installation. 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") + set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") endif() endif() - ################################################################### -- cgit v1.2.1