-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
37 lines (29 loc) · 1.17 KB
/
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
33
34
35
36
37
cmake_minimum_required(VERSION 3.17.0)
# Define the concore project
project(concore-dev LANGUAGES CXX)
if(EXISTS ${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
else()
message(ERROR "The file conanbuildinfo.cmake doesn't exist, you have to run conan install first")
endif()
# Set the version of the project
project(concore-dev VERSION "${CONAN_PACKAGE_VERSION}")
# Print CMake configuration
message(STATUS "System : ${CMAKE_SYSTEM}")
message(STATUS "System name : ${CMAKE_SYSTEM_NAME}")
message(STATUS "System ver : ${CMAKE_SYSTEM_VERSION}")
message(STATUS)
# The main concore library
add_subdirectory(src)
# Prevent linking errors with CXX11 or older ABI (visible when linking with rapidcheck)
target_compile_definitions(concore PUBLIC _GLIBCXX_USE_CXX11_ABI=1)
# Testing code
enable_testing()
add_subdirectory(test)
# Basic CPack support
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_VENDOR "Lucian Radu Teodorescu")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CMAKE_PROJECT_HOMEPAGE_URL "https://github.com/lucteo/concore")
include(CPack)