forked from sandialabs/parsegen-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (21 loc) · 784 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (21 loc) · 784 Bytes
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
cmake_minimum_required(VERSION 3.15.0...3.21.2)
project(parsegen VERSION 2.0.0 LANGUAGES CXX)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
add_subdirectory(src)
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/parsegen-config.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/parsegen
)
write_basic_package_version_file(
"${PROJECT_BINARY_DIR}/parsegen-config-version.cmake"
COMPATIBILITY AnyNewerVersion)
install(FILES
"${PROJECT_BINARY_DIR}/parsegen-config.cmake"
"${PROJECT_BINARY_DIR}/parsegen-config-version.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/parsegen)
install(
EXPORT parsegen-targets
NAMESPACE parsegen::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/parsegen)