mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
4d13f472a2
The `CMakeLists.txt` file already calls `cmake_minimum_required` and `project` before including each case's code.
17 lines
292 B
CMake
17 lines
292 B
CMake
enable_language(C)
|
|
enable_language(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)
|