-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplasticityConfig.cmake.in
32 lines (22 loc) · 1.05 KB
/
plasticityConfig.cmake.in
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
# Config file for the plasticity package
get_filename_component(plasticity_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
list(APPEND CMAKE_MODULE_PATH "${plasticity_CMAKE_DIR}")
include(FindPackageHandleStandardArgs)
include(CMakeFindDependencyMacro)
if(MSVC)
set(CMAKE_CXX_FLAGS "/wd4018 /wd4244 /wd4267 /wd4305 ${CMAKE_CXX_FLAGS}")
endif()
if(@OPENMP_FOUND@)
find_dependency(OpenMP)
endif()
find_package (Eigen3 REQUIRED NO_MODULE)
if(@VIEW@)
find_package (OpenCV REQUIRED COMPONENTS core highgui)
endif()
# Our library dependencies (contains definitions for IMPORTED targets)
include("${plasticity_CMAKE_DIR}/plasticityTargets.cmake")
include("${plasticity_CMAKE_DIR}/plasticityConfigVersion.cmake")
get_target_property(FULL_plasticity_INCLUDE_DIRS plasticity::plasticity INTERFACE_INCLUDE_DIRECTORIES)
list(GET FULL_plasticity_INCLUDE_DIRS 0 plasticity_INCLUDE_DIR)
get_filename_component(plasticity_INCLUDE_DIR "${plasticity_INCLUDE_DIR}" REALPATH)
find_package_handle_standard_args(plasticity REQUIRED_VARS plasticity_INCLUDE_DIR VERSION_VAR PACKAGE_VERSION)