2014-11-18 22:07:26 +00:00
|
|
|
SET(FASTC_VERSION @FasTC_VERSION@)
|
|
|
|
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
SET(FasTC_LIBRARIES FasTCBase FasTCIO FasTCCore BPTCEncoder PVRTCEncoder DXTEncoder ETCEncoder ASTCEncoder)
|
|
|
|
|
|
|
|
IF(NOT TARGET FasTCBase)
|
|
|
|
# We're coming from a build tree -- include all of the targets
|
|
|
|
# from the project and try to make sure that our includes are set properly
|
|
|
|
INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FasTCTargets.cmake")
|
|
|
|
|
|
|
|
FOREACH(LIB ${FasTC_LIBRARIES})
|
|
|
|
STRING(REPLACE "FasTC" "" DIR "${LIB}")
|
2014-11-18 22:17:16 +00:00
|
|
|
|
|
|
|
SET(CURRENT_DIR "@FasTC_SOURCE_DIR@/${DIR}/include")
|
|
|
|
IF( EXISTS "${CURRENT_DIR}/" )
|
|
|
|
SET(FasTC_INCLUDE_DIRS ${FasTC_INCLUDE_DIRS} ${CURRENT_DIR})
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
SET(CURRENT_DIR "@FasTC_BINARY_DIR@/${DIR}/include")
|
2014-11-18 22:07:26 +00:00
|
|
|
IF( EXISTS "${CURRENT_DIR}/" )
|
|
|
|
SET(FasTC_INCLUDE_DIRS ${FasTC_INCLUDE_DIRS} ${CURRENT_DIR})
|
|
|
|
ENDIF()
|
2014-11-18 22:17:16 +00:00
|
|
|
|
2014-11-18 22:07:26 +00:00
|
|
|
ENDFOREACH()
|
|
|
|
|
|
|
|
SET(FasTC_EXECUTABLES tc compare decomp)
|
|
|
|
|
|
|
|
ELSE()
|
|
|
|
|
|
|
|
# This is an install tree -- everything should be a lot easier....
|
|
|
|
SET_AND_CHECK(FasTC_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@/FasTC")
|
|
|
|
SET_AND_CHECK(FasTC_BIN_DIR "@PACKAGE_BIN_INSTALL_DIR@")
|
|
|
|
SET_AND_CHECK(FasTC_LIB_DIR "@PACKAGE_LIB_INSTALL_DIR@")
|
|
|
|
|
|
|
|
ENDIF()
|