Debian Codegraph @

tests/ECMSetupVersionTest/new_project_header_abspath/CMakeLists.txt

raw
1 cmake_minimum_required(VERSION 3.16)
2
3 project(new_project_header_abspath VERSION 2.3.4)
4
5 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../modules)
6 include(ECMSetupVersion)
7
8 ecm_setup_version(PROJECT
9 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/../ecm_new_project_header_abspath_version.h"
10 )
11
12 include(../version_helpers.cmake)
13 # NB: name comes from project() command
14 standard_version_var_checks(new_project_header_abspath 2.3.4)
15
16 add_executable(check_header main.c)
17 target_include_directories(check_header PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/..")