Can't you just set CMAKE_RUNTIME_OUTPUT_DIRECTORY in your top level
CMakeLists.txt?
For example:
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIRECTORY}/bin)
Then any project from there and under (from
add_subdirectory()/subdirs()), will build their .exe and .dll directly
into t
My CMake project is organized into a number of subdirectories. Each
subdirectory is independent and knows how to build itself (we call these
subdirectories "buildables").
There is also a top-level "collector" buildable that integrates all the
subdirectories. Basically all it does is:
foreach (tar