Add precompiled headers to unit tests

This commit is contained in:
Alexander Bock
2024-01-08 17:09:59 +01:00
parent 97d1dc163b
commit 4bf111115e
3 changed files with 6 additions and 2 deletions

View File

@@ -63,6 +63,10 @@ target_include_directories(OpenSpaceTest
target_compile_definitions(OpenSpaceTest PUBLIC "GHL_THROW_ON_ASSERT")
target_link_libraries(OpenSpaceTest PUBLIC Catch2 openspace-core sgct)
target_precompile_headers(OpenSpaceTest PRIVATE
<catch2/catch_test_macros.hpp>
)
foreach (library_name ${all_enabled_modules})
get_target_property(library_type ${library_name} TYPE)
if (NOT ${library_type} STREQUAL "SHARED_LIBRARY")