Skip to content
Snippets Groups Projects
Commit 78ab15aa authored by Ben Boeckel's avatar Ben Boeckel
Browse files

FindOpenSlide: create an imported target

parent 51688955
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
# OPENSLIDE_FOUND - system has OpenSlide
# OPENSLIDE_INCLUDE_DIRS - the OpenSlide include directory
# OPENSLIDE_LIBRARIES - link to these to use OpenSlide
# OpenSlide::OpenSlide - imported target
# Look for the header.
find_path(OPENSLIDE_INCLUDE_DIR
......@@ -30,4 +31,8 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS( OPENSLIDE DEFAULT_MSG OPENSLIDE_LIBRARY OPENS
if( OPENSLIDE_FOUND )
set( OPENSLIDE_LIBRARIES ${OPENSLIDE_LIBRARY} )
set( OPENSLIDE_INCLUDE_DIRS ${OPENSLIDE_INCLUDE_DIR} )
add_library(OpenSlide::OpenSlide UNKNOWN IMPORTED)
set_target_properties(OpenSlide::OpenSlide PROPERTIES
IMPORTED_LOCATION "${OPENSLIDE_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${OPENSLIDE_INCLUDE_DIR}")
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment