diff --git a/tests/add_subdirectory-integration/CMakeLists.txt b/tests/add_subdirectory-integration/CMakeLists.txt index 5704c34e..8ef7ef53 100644 --- a/tests/add_subdirectory-integration/CMakeLists.txt +++ b/tests/add_subdirectory-integration/CMakeLists.txt @@ -4,5 +4,10 @@ project(demo_project VERSION 0.0.1 LANGUAGES CXX) add_executable(main main.cpp) +if(WIN32) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") + set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +endif() + add_subdirectory(libassert) target_link_libraries(main assert) diff --git a/tests/findpackage-integration/CMakeLists.txt b/tests/findpackage-integration/CMakeLists.txt index 48d51279..aa5febbf 100644 --- a/tests/findpackage-integration/CMakeLists.txt +++ b/tests/findpackage-integration/CMakeLists.txt @@ -4,10 +4,5 @@ project(demo_project VERSION 0.0.1 LANGUAGES CXX) add_executable(main main.cpp) -if(WIN32) - set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") - set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") -endif() - find_package(assert REQUIRED) target_link_libraries(main assert::assert)