Commit eb485032 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Adapt to previous commit

First, use the CMAKE_RUNTIME_OUTPUT_DIRECTORY variable to get the configuration dependant output folder.
However, configure_file does not support generator expressions.
Thus switch to file(GENERATE).
parent 755564ad
......@@ -20,7 +20,11 @@ set_property (TARGET ConfigUtilsTest PROPERTY FOLDER "Tests/ITABase")
install (TARGETS ConfigUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
configure_file (${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini ${CMAKE_BINARY_DIR}/bin/ConfigUtilsTest.ini COPYONLY)
file (
GENERATE
OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ConfigUtilsTest.ini
INPUT ${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini
)
install (FILES ${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini TYPE BIN)
# ######################################################################################################################
......
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