You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
308 B
16 lines
308 B
3 years ago
|
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)
|