diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-05 21:17:16 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-05 21:17:16 +0400 |
commit | 26dfa76faa883c35fe3e5ff4b2b33f4102059a81 (patch) | |
tree | 27b71a44b38fb4b64e991146e235ae327c86ef5d /source/test/integration/find_package/CMakeLists.txt | |
download | kit-26dfa76faa883c35fe3e5ff4b2b33f4102059a81.zip |
Async function & unit-testing
Diffstat (limited to 'source/test/integration/find_package/CMakeLists.txt')
-rw-r--r-- | source/test/integration/find_package/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/source/test/integration/find_package/CMakeLists.txt b/source/test/integration/find_package/CMakeLists.txt new file mode 100644 index 0000000..f21cdae --- /dev/null +++ b/source/test/integration/find_package/CMakeLists.txt @@ -0,0 +1,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") |