-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (21 loc) · 981 Bytes
/
CMakeLists.txt
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
28
29
30
31
32
# Copyright 2025 Arniiiii [email protected] MIT license
cmake_minimum_required(VERSION 3.14...3.22)
# ---- Project ----
set(AddBoost.cmake_VERSION 3.6)
option(${PROJECT_NAME}_INSTALL "Install the script at local system?" NO)
configure_file(
${CMAKE_CURRENT_LIST_DIR}/cmake/AddBoost.cmake/AddBoost.cmakeConfig.cmake.in ${CMAKE_CURRENT_LIST_DIR}/cmake/AddBoost.cmake/AddBoost.cmakeConfig.cmake
@ONLY
)
include(${CMAKE_CURRENT_LIST_DIR}/cmake/AddBoost.cmake/AddBoost.cmakeConfig.cmake)
if(${AddBoost.cmake_INSTALL})
include(GNUInstallDirs)
set(CMAKEDIR
${CMAKE_INSTALL_DATADIR}/cmake/AddBoost.cmake/
CACHE
PATH
"Path to a folder to which install the script AddBoostConfig.cmake . By default: ${CMAKE_INSTALL_DATADIR}/cmake/AddBoost.cmake/"
)
install(FILES "${CMAKE_CURRENT_LIST_DIR}/cmake/AddBoost.cmake/AddBoost.cmakeConfig.cmake" DESTINATION "${CMAKEDIR}")
message(STATUS "Use `find_package(AddBoost.cmake)` to use it")
endif()