openigtlink / OpenIGTLink

Free, open-source network communication library for image-guided therapy
http://openigtlink.org
BSD 3-Clause "New" or "Revised" License
102 stars 184 forks source link

OpenIGTLink_INCLUDE_DIRS is empty #251

Closed jsbyysheng closed 2 years ago

jsbyysheng commented 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:

find_package(OpenIGTLink REQUIRED
  PATHS ../OpenIGTLink-build
)
INCLUDE(${OpenIGTLink_USE_FILE})
message(STATUS "OpenIGTLink_INCLUDE_DIRS: ${OpenIGTLink_INCLUDE_DIRS} ")

This outputed OpenIGTLink_INCLUDE_DIRS :.

adamrankin commented 2 years ago

Is this from a built OpenIGTLink or installed?

jsbyysheng commented 2 years ago

From a built OpenIGTLink.