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.
14 lines
340 B
14 lines
340 B
5 years ago
|
cmake_minimum_required(VERSION 3.15)
|
||
|
|
||
|
project(SkipPrecompileHeaders)
|
||
|
|
||
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||
|
|
||
|
add_executable(pch-test main.cpp non-pch.cpp)
|
||
|
target_precompile_headers(pch-test PRIVATE pch.h)
|
||
|
|
||
|
set_source_files_properties(non-pch.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||
|
|
||
|
enable_testing()
|
||
|
add_test(NAME pch-test COMMAND pch-test)
|