blob: 9ec1b36c0852186282e924284575377628eb46f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
enable_language(C)
enable_language(CXX)
add_executable(main
no_pch.c
use_pch.cxx
)
target_include_directories(main PUBLIC include)
target_precompile_headers(main PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/include/cxx_pch.h>"
)
enable_testing()
add_test(NAME main COMMAND main)
|