Closed jsbyysheng closed 2 years ago
After executing cmake, I found SET(OpenIGTLink_INCLUDE_DIRS "") in OpenIGTLinkConfig.cmake file. I got the empty Var when I used OpenIGTLink_INCLUDE_DIRS in another project's cmake file. The below is a part of my cmake file:
cmake
SET(OpenIGTLink_INCLUDE_DIRS "")
OpenIGTLinkConfig.cmake
OpenIGTLink_INCLUDE_DIRS
find_package(OpenIGTLink REQUIRED PATHS ../OpenIGTLink-build ) INCLUDE(${OpenIGTLink_USE_FILE}) message(STATUS "OpenIGTLink_INCLUDE_DIRS: ${OpenIGTLink_INCLUDE_DIRS} ")
This outputed OpenIGTLink_INCLUDE_DIRS :.
OpenIGTLink_INCLUDE_DIRS :
Is this from a built OpenIGTLink or installed?
From a built OpenIGTLink.
After executing
cmake
, I foundSET(OpenIGTLink_INCLUDE_DIRS "")
inOpenIGTLinkConfig.cmake
file. I got the empty Var when I usedOpenIGTLink_INCLUDE_DIRS
in another project's cmake file. The below is a part of my cmake file:This outputed
OpenIGTLink_INCLUDE_DIRS :
.