This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/tests/CMakeLists.txt

14 lines
576 B
CMake
Raw Normal View History

macro(AddTest TEST_NAME TEST_FILE)
add_executable(${TEST_NAME} ${TEST_FILE})
add_test(NAME ${TEST_NAME}
COMMAND ${TEST_NAME})
target_link_libraries(${TEST_NAME} PRIVATE ${ARGN})
target_include_directories(${TEST_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/include)
endmacro()
AddTest(math math.cpp ${ENGINE_NAME})
AddTest(renderer renderer.cpp ${ENGINE_NAME})
AddTest(innerBmpFont innerBmpFont.cpp ${ENGINE_NAME})
AddTest(audio audio.cpp ${ENGINE_NAME})
AddTest(quicklist quicklist.cpp ${ENGINE_NAME})