blob: efa83d04fda236e2c5d10ecfc5e63a8a0ca57e91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
cmake_minimum_required(VERSION 3.16)
set(NAME kit-integration-fetch-content)
project(${NAME} C)
include(FetchContent)
FetchContent_Declare(
kit
GIT_REPOSITORY https://github.com/automainint/kit.git
GIT_TAG dev)
set(KIT_ENABLE_TESTING OFF)
FetchContent_MakeAvailable(kit)
add_executable(${NAME})
target_sources(${NAME} PRIVATE main.c)
target_link_libraries(${NAME} PRIVATE kit::kit)
enable_testing()
add_test(NAME ${NAME}-run COMMAND ${NAME})
set_tests_properties(${NAME}-run PROPERTIES TIMEOUT "15")
|