cmake/ctest: output test binaries to debug/release folders on windows.

debug/release builds were writing the binaries to the same folder
This commit is contained in:
Ray molenkamp 2018-08-17 10:04:55 -06:00
parent 2a00bea7b4
commit 0a5f706136
Notes: blender-bot 2023-02-14 06:05:22 +01:00
Referenced by commit 6aaa6c96a1, Tests: set build directory using build type
1 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,11 @@ enable_testing()
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin CACHE INTERNAL "" FORCE)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib CACHE INTERNAL "" FORCE)
set(TESTS_OUTPUT_DIR ${EXECUTABLE_OUTPUT_PATH}/tests CACHE INTERNAL "" FORCE)
if(MSVC)
set(TESTS_OUTPUT_DIR ${EXECUTABLE_OUTPUT_PATH}/tests/$<CONFIG>/ CACHE INTERNAL "" FORCE)
else
set(TESTS_OUTPUT_DIR ${EXECUTABLE_OUTPUT_PATH}/tests/ CACHE INTERNAL "" FORCE)
endif()
#-----------------------------------------------------------------------------
# Set default config options