25 lines
745 B
CMake
25 lines
745 B
CMake
set(DIDKIT_LIBRARIES DIDKit)
|
|
|
|
# The configuration options.
|
|
set(DIDKIT_BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@")
|
|
|
|
get_filename_component(SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
if(EXISTS ${SELF_DIR}/DIDKITTargets.cmake)
|
|
# This is an install tree
|
|
include(${SELF_DIR}/DIDKITTargets.cmake)
|
|
get_filename_component(DIDKIT_INCLUDE_ROOT "${SELF_DIR}/../../../include" ABSOLUTE)
|
|
set(DIDKIT_INCLUDE_DIRS ${DIDKIT_INCLUDE_ROOT})
|
|
else()
|
|
if(EXISTS ${SELF_DIR}/DIDKITExports.cmake)
|
|
# This is a build tree
|
|
set( DIDKIT_INCLUDE_DIRS "@CMAKE_SOURCE_DIR@/include")
|
|
|
|
include(${SELF_DIR}/DIDKITExports.cmake)
|
|
|
|
else()
|
|
message(FATAL_ERROR "fail to load DIDKIT")
|
|
endif()
|
|
endif()
|
|
|
|
# Backward compatible part:
|
|
set(DIDKIT_FOUND TRUE) |