forked from IGSIO/OpenIGTLinkIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenIGTLinkIOConfig.cmake.in
24 lines (19 loc) · 1.02 KB
/
OpenIGTLinkIOConfig.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
if(NOT OpenIGTLink_FOUND)
set(OpenIGTLink_DIR "@OpenIGTLink_DIR@")
find_package(OpenIGTLink REQUIRED NO_MODULE)
else()
if(NOT "@OpenIGTLink_VERSION_MAJOR@.@OpenIGTLink_VERSION_MINOR@.@OpenIGTLink_VERSION_PATCH@" VERSION_EQUAL "${OpenIGTLink_VERSION_MAJOR}.${OpenIGTLink_VERSION_MINOR}.${OpenIGTLink_VERSION_PATCH}")
message(SEND_ERROR "Different versions in OpenIGTLinkIO (@OpenIGTLink_VERSION_MAJOR@.@OpenIGTLink_VERSION_MINOR@.@OpenIGTLink_VERSION_PATCH@) and referencing project (${OpenIGTLink_VERSION_MAJOR}.${OpenIGTLink_VERSION_MINOR}.${OpenIGTLink_VERSION_PATCH}). Issues may arise.")
endif()
endif()
if(EXISTS ${OpenIGTLink_USE_FILE})
include(${OpenIGTLink_USE_FILE})
endif()
@OpenIGTLinkIO_CONFIG_CODE@
include("@OpenIGTLinkIO_LIBRARY_TARGETS_FILE@")
# Enable support for old style include/linking
# It is highly recommended to link to target names, thus
# includes/linking are handled automatically
SET(OpenIGTLinkIO_FOUND 1)
SET(OpenIGTLinkIO_LIBRARIES "@OpenIGTLinkIO_LIBRARIES@")
@OpenIGTLinkIO_Qt_CONFIG_CODE@