diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-17 11:11:26 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | 90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66 (patch) | |
tree | 2e8f3eb815c090e8d68cd5c3251e17a0137a4dbd /Tests | |
parent | 30c882827ec6f7b26fe07e5fba42f1a7400e9b36 (diff) | |
download | CMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.zip CMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.tar.gz CMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.tar.bz2 |
CMakeLibTests: Precompile common expensive headers
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeLib/CMakeLists.txt b/Tests/CMakeLib/CMakeLists.txt index b22d76d..fc3c23b 100644 --- a/Tests/CMakeLib/CMakeLists.txt +++ b/Tests/CMakeLib/CMakeLists.txt @@ -68,6 +68,10 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/testUVProcessChainInput.txt" "HELLO WORL create_test_sourcelist(CMakeLib_TEST_SRCS CMakeLibTests.cxx ${CMakeLib_TESTS}) add_executable(CMakeLibTests ${CMakeLib_TEST_SRCS}) target_link_libraries(CMakeLibTests CMakeLib CTestLib) +if(CMake_BUILD_PCH) + target_precompile_headers(CMakeLibTests PRIVATE "<iostream>" "<cm3p/uv.h>") + target_compile_definitions(CMakeLibTests PRIVATE "NOMINMAX") +endif() set_property(TARGET CMakeLibTests PROPERTY C_CLANG_TIDY "") set_property(TARGET CMakeLibTests PROPERTY CXX_CLANG_TIDY "") |