If we're in the build tree, we know where the source is

This commit is contained in:
Pavel Krajcevski 2014-11-18 17:17:16 -05:00
parent fb7805d875
commit b67fb73fb4

View file

@ -11,10 +11,17 @@ IF(NOT TARGET FasTCBase)
FOREACH(LIB ${FasTC_LIBRARIES})
STRING(REPLACE "FasTC" "" DIR "${LIB}")
SET(CURRENT_DIR "${CMAKE_CURRENT_LIST_DIR}/${DIR}/include")
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)