CMakeLists-C.txt.in 220 Bytes
Newer Older
1 2 3
cmake_minimum_required(VERSION "@CMAKE_VERSION@")
project("@TRY_COMPILE_PROJECT_NAME@" LANGUAGES C)

4
cmake_policy(SET CMP0069 NEW)
5 6 7 8

add_library(foo foo.c)
add_executable(boo main.c)
target_link_libraries(boo PUBLIC foo)