Answer the question
In order to leave comments, you need to log in
How to make CLion copy the configs directory to the Debug output directory next to the binary?
Compiling a project in CLion. Somewhere in the settings it is specified that Debug will be created in some directory, into which CLion will copy the compiled files.
I wrote the following line in CMakeLists.txt:
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config/utils.cfg ${CMAKE_CURRENT_BINARY_DIR}/config/utils.cfg COPYONLY)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question