aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMSetupVersionTest/new_project_header_prefix/CMakeLists.txt
blob: a29609a38373d866acaecc3f931264e2671fe42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.0.0)

project(new_project_header_prefix VERSION 2.3.4)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../modules)
include(ECMSetupVersion)

ecm_setup_version(PROJECT
    VARIABLE_PREFIX Foo
    VERSION_HEADER "ecm_new_project_header_version.h"
)

include(../version_helpers.cmake)
standard_version_var_checks(Foo 2.3.4)

add_executable(check_header main.c)
target_include_directories(check_header PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")