Skip to content

Commit

Permalink
Use Unity Build on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Oct 10, 2024
1 parent 769b717 commit cb42a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ target_compile_definitions(${PROJECT_NAME}
# On some platforms (e.g. Windows) CMake doesn't write load paths properly
# This solution to put outputs in the same directory is good enough
set_target_properties(${PROJECT_NAME}
PROPERTIES RUNTIME_OUTPUT_DIRECTORY $<TARGET_FILE_DIR:tmp::tmp>)
PROPERTIES RUNTIME_OUTPUT_DIRECTORY $<TARGET_FILE_DIR:tmp::tmp>
UNITY_BUILD ON)

include(GoogleTest)
gtest_discover_tests(${PROJECT_NAME} EXTRA_ARGS --gtest_color=yes)

0 comments on commit cb42a0c

Please sign in to comment.