-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
41 lines (30 loc) · 906 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
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.1)
project(ESA++
VERSION 0.5.2
LANGUAGES CXX
)
option(ENABLE_CONAN "Enable conan package manager" OFF)
if(ENABLE_CONAN)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
endif(ENABLE_CONAN)
find_package(DICT CONFIG REQUIRED)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(${PROJECT_NAME}_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
install(DIRECTORY ${${PROJECT_NAME}_INCLUDE_DIR}/
DESTINATION include
PATTERN *.hpp
)
add_library(${PROJECT_NAME} INTERFACE)
target_link_libraries(${PROJECT_NAME} INTERFACE DICT::DICT)
target_include_directories(${PROJECT_NAME}
INTERFACE
$<BUILD_INTERFACE:${${PROJECT_NAME}_INCLUDE_DIR}>
$<INSTALL_INTERFACE:include>
)
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
)
add_subdirectory(wrapper)
include(cmake/ESA++Package.cmake)