Commit 32515220 authored by Kenneth Moreland's avatar Kenneth Moreland

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.
parent 0d08b037
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment