From 32515220425bb2da8e51e0d9b87dcad2cc89d44a Mon Sep 17 00:00:00 2001 From: Kenneth Moreland Date: Tue, 17 Oct 2017 15:28:18 -0600 Subject: [PATCH] Fix location of dll files in build directory You have to set up a target property to say the "runtime" should go in the build directory, which is annoying. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100644 new mode 100755 index 79cf92e..efc1a47 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -246,6 +246,13 @@ MACRO(ICET_ADD_LIBRARY library_name) ) SET(icet_library_sources ${ARGN}) ADD_LIBRARY(${library_name} ${icet_library_sources}) + # Make sure libraries go to lib directory and dll go to bin directory. + # Mostly important on Windows. + SET_TARGET_PROPERTIES(${library_name} PROPERTIES + ARCHIVE_OUTPUT_DIRECTORY ${ICET_LIBRARY_DIR} + LIBRARY_OUTPUT_DIRECTORY ${ICET_LIBRARY_DIR} + RUNTIME_OUTPUT_DIRECTORY ${ICET_EXECUTABLE_DIR} + ) IF (ICET_C_FLAGS_WARN) SET_SOURCE_FILES_PROPERTIES(${icet_library_sources} PROPERTIES COMPILE_FLAGS ${ICET_C_FLAGS_WARN} -- GitLab