blob: f21cdae5bbf74039ca99a40d46ccd7dbd2f88c28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
cmake_minimum_required(VERSION 3.16)
set(NAME kit-integration-find-package)
project(${NAME}-root)
include(ExternalProject)
ExternalProject_Add(
kit
GIT_REPOSITORY https://github.com/automainint/kit.git
GIT_TAG dev
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/install
-D KIT_ENABLE_TESTING=OFF)
ExternalProject_Add(
${NAME}
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/source
CMAKE_ARGS
-D CMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/install)
ExternalProject_Add_StepDependencies(${NAME} build kit)
include(GNUInstallDirs)
enable_testing()
add_test(
NAME ${NAME}-run
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/install/${CMAKE_INSTALL_BINDIR}/${NAME}${CMAKE_EXECUTABLE_SUFFIX})
set_tests_properties(
${NAME}-run
PROPERTIES
TIMEOUT "15")
|