7 set(TEST_NAMES ${TEST_NAMES} warp move click)
8 set(TEST_LIBS ${TEST_LIBS} ${SDL_LIBRARY})
9 include_directories(${SDL_INCLUDE_DIR})
11 message(STATUS "SDL not found, only building basic tests...")
14 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
15 link_directories(${ARCHIVE_OUTPUT_DIRECTORY})
17 foreach(BIN ${TEST_NAMES})
18 add_executable(${BIN} ${BIN}.c)
19 target_link_libraries(${BIN} ${TEST_LIBS})
20 add_test(${BIN} ${EXECUTABLE_OUTPUT_PATH}/${BIN})