mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-12-12 00:34:18 +01:00
37 lines
1.1 KiB
CMake
37 lines
1.1 KiB
CMake
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}")
|
|
|
|
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")
|
|
IF( EXISTS "${CURRENT_DIR}/" )
|
|
SET(FasTC_INCLUDE_DIRS ${FasTC_INCLUDE_DIRS} ${CURRENT_DIR})
|
|
ENDIF()
|
|
|
|
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()
|