CrucibleConfigureOutputDirectory.cmake
1
2
3
4
5
6
7
include_guard(GLOBAL) function(crucible_configure_output_directory DIRECTORY_NAME) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${DIRECTORY_NAME}" CACHE INTERNAL "") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${DIRECTORY_NAME}" CACHE INTERNAL "") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${DIRECTORY_NAME}" CACHE INTERNAL "") endfunction()