mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 21:14:20 +01:00
Tell CMake to look in individual test directories for tests if they exist
This commit is contained in:
parent
2d470a387a
commit
bdbed413b5
@ -92,8 +92,22 @@ ENDIF(TREAT_WARNINGS_AS_ERRORS)
|
||||
SET(CMAKE_MODULE_PATH "${FasTC_SOURCE_DIR}/CMakeModules" ${CMAKE_MODULE_PATH})
|
||||
FIND_PACKAGE(PVRTexLib)
|
||||
|
||||
ADD_SUBDIRECTORY(BPTCEncoder)
|
||||
ADD_SUBDIRECTORY(IO)
|
||||
ADD_SUBDIRECTORY(Core)
|
||||
SET(FASTC_DIRECTORIES
|
||||
BPTCEncoder IO Core
|
||||
)
|
||||
|
||||
FOREACH(DIR ${FASTC_DIRECTORIES})
|
||||
ADD_SUBDIRECTORY(${DIR})
|
||||
ENDFOREACH()
|
||||
|
||||
ENABLE_TESTING()
|
||||
|
||||
ADD_SUBDIRECTORY(GTest)
|
||||
FOREACH(DIR ${FASTC_DIRECTORIES})
|
||||
SET(TESTDIR ${FasTC_SOURCE_DIR}/${DIR}/test)
|
||||
IF(IS_DIRECTORY ${TESTDIR})
|
||||
ADD_SUBDIRECTORY(${TESTDIR})
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
ADD_SUBDIRECTORY(CLTool)
|
||||
|
Loading…
Reference in New Issue
Block a user