summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/CMakeLists.txt
blob: 409245ea7c53ea38a5cfc2d7430e299f379ec388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)

project(${RunCMake_TEST} CXX)

# set default test name (can be overwritten in test.cmake or specifics.cmake)
string(TOLOWER "${RunCMake_TEST_FILE_PREFIX}" CPACK_PACKAGE_NAME)

include(${RunCMake_TEST_FILE_PREFIX}.cmake)

# include test generator specifics
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GENERATOR_TYPE}/${RunCMake_TEST_FILE_PREFIX}-specifics.cmake")
  include("${GENERATOR_TYPE}/${RunCMake_TEST_FILE_PREFIX}-specifics.cmake")
endif()

set(CPACK_GENERATOR "${GENERATOR_TYPE}")
include(CPack)