-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·23 lines (17 loc) · 1.05 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
cmake_minimum_required(VERSION 2.8.10)
project(openmesh_structures)
include(CMakePackageConfigHelpers)
find_package(OpenMesh REQUIRED)
add_library(openmesh_structures INTERFACE)
target_compile_definitions(openmesh_structures INTERFACE -D_USE_MATH_DEFINES)
target_link_libraries(openmesh_structures INTERFACE ${OPENMESH_LIBRARIES})
target_include_directories(openmesh_structures INTERFACE
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
${OPENMESH_INCLUDE_DIR}
)
configure_package_config_file(openmesh_structuresConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/openmesh_structuresConfig.cmake INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX})
install(TARGETS openmesh_structures EXPORT openmesh_structures-targets)
install(EXPORT openmesh_structures-targets FILE openmesh_structuresTargets.cmake DESTINATION ${CMAKE_INSTALL_PREFIX})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/openmesh_structuresConfig.cmake DESTINATION ${CMAKE_INSTALL_PREFIX})
install(DIRECTORY ./ DESTINATION include FILES_MATCHING PATTERN "*.h" PATTERN ".git" EXCLUDE)