blob: a4554103d2474228dcc5c5036d5e57b093233018 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
cmake_minimum_required(VERSION 3.15)
project(PchIncludedAllLanguages C CXX)
if(CMAKE_CXX_COMPILE_OPTIONS_USE_PCH)
add_definitions(-DHAVE_PCH_SUPPORT)
endif()
add_executable(main
main.cpp
pch-included.c
pch-included.cpp
)
target_precompile_headers(main PRIVATE pch.h)
enable_testing()
add_test(NAME main COMMAND main)
|