commit ed6c5f83e2300c6f1dbf869d379a312bc5e662e3 parent 5392eafa8ff963fb7d62e7373b808746eabcb6df Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:48:51 +0100 link command line app to specific folder to be able to use it in build scripts Diffstat:
M | source/commandlineGenerator/CMakeLists.txt | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/source/commandlineGenerator/CMakeLists.txt b/source/commandlineGenerator/CMakeLists.txt @@ -12,3 +12,14 @@ target_sources(commandlineGenerator PRIVATE ${SOURCES}) source_group("source" FILES ${SOURCES}) target_link_libraries(commandlineGenerator PUBLIC baseLib) + +set (outputDir "${CMAKE_SOURCE_DIR}/bin/tools") + +set_property(TARGET commandlineGenerator PROPERTY RUNTIME_OUTPUT_DIRECTORY "${outputDir}") + +get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) + +if(isMultiConfig) + set_property(TARGET commandlineGenerator PROPERTY RUNTIME_OUTPUT_DIRECTORY_DEBUG "${outputDir}/Debug") + set_property(TARGET commandlineGenerator PROPERTY RUNTIME_OUTPUT_DIRECTORY_RELEASE "${outputDir}") +endif()