-
Notifications
You must be signed in to change notification settings - Fork 9
/
Prob3plusplusConfig.cmake.in
39 lines (31 loc) · 1.27 KB
/
Prob3plusplusConfig.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
33
34
35
36
37
38
39
set(Prob3plusplus_VERSION @Prob3plusplus_VERSION@)
@PACKAGE_INIT@
get_filename_component(Prob3plusplus_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
list(APPEND CMAKE_MODULE_PATH "${Prob3plusplus_CMAKE_DIR}")
include(${Prob3plusplus_CMAKE_DIR}/Prob3plusplusTargets.cmake)
if(NOT TARGET Prob3plusplus::Prob3plusplus)
message(FATAL_ERROR "After including ${Prob3plusplus_CMAKE_DIR}/Prob3plusplusTargets.cmake, expected target: Prob3plusplus::Prob3plusplus was not declared.")
endif()
find_path(Prob3plusplus_INCLUDE_DIR
NAMES mosc.h
PATHS
${Prob3plusplus_CMAKE_DIR}/../include
${Prob3plusplus_CMAKE_DIR}/../../../include
)
message(STATUS "Prob3plusplus_CMAKE_DIR: ${Prob3plusplus_CMAKE_DIR}")
message(STATUS "Prob3plusplus_INCLUDE_DIR: ${Prob3plusplus_INCLUDE_DIR}")
message(STATUS "Prob3plusplus_VERSION: ${Prob3plusplus_VERSION}")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Prob3plusplus
REQUIRED_VARS
Prob3plusplus_INCLUDE_DIR
VERSION_VAR
Prob3plusplus_VERSION
)
if(NOT TARGET Prob3plusplus::All)
add_library(Prob3plusplus::All INTERFACE IMPORTED)
set_target_properties(Prob3plusplus::All PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${Prob3plusplus_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES Prob3plusplus::Prob3plusplus
)
endif()