1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

cmake: reformat tests/CMakeLists.txt

This commit is contained in:
Anonymous Maarten 2017-10-26 01:03:15 +02:00 committed by Daniel Evans
parent 282a6e2714
commit 579a36cec7

View File

@ -5,48 +5,48 @@
find_package(Boost COMPONENTS filesystem unit_test_framework REQUIRED) find_package(Boost COMPONENTS filesystem unit_test_framework REQUIRED)
set(TEST_SOURCES set(TEST_SOURCES
"main.cpp" main.cpp
"test_globals.cpp" test_globals.cpp
"test_animation.cpp" test_animation.cpp
"test_archive.cpp" test_archive.cpp
"test_buoyancy.cpp" test_buoyancy.cpp
"test_character.cpp" test_character.cpp
"test_chase.cpp" test_chase.cpp
"test_cutscene.cpp" test_cutscene.cpp
"test_config.cpp" test_config.cpp
"test_data.cpp" test_data.cpp
"test_FileIndex.cpp" test_FileIndex.cpp
"test_GameData.cpp" test_GameData.cpp
"test_GameWorld.cpp" test_GameWorld.cpp
"test_globals.hpp" test_globals.hpp
"test_items.cpp" test_items.cpp
"test_Input.cpp" test_Input.cpp
"test_lifetime.cpp" test_lifetime.cpp
"test_loaderdff.cpp" test_loaderdff.cpp
"test_LoaderIPL.cpp" test_LoaderIPL.cpp
"test_Logger.cpp" test_Logger.cpp
"test_menu.cpp" test_menu.cpp
"test_object.cpp" test_object.cpp
"test_object_data.cpp" test_object_data.cpp
"test_pickup.cpp" test_pickup.cpp
"test_renderer.cpp" test_renderer.cpp
"test_rwbstream.cpp" test_rwbstream.cpp
"test_SaveGame.cpp" test_SaveGame.cpp
"test_scriptmachine.cpp" test_scriptmachine.cpp
"test_state.cpp" test_state.cpp
"test_text.cpp" test_text.cpp
"test_trafficdirector.cpp" test_trafficdirector.cpp
"test_vehicle.cpp" test_vehicle.cpp
"test_VisualFX.cpp" test_VisualFX.cpp
"test_weapon.cpp" test_weapon.cpp
"test_world.cpp" test_world.cpp
"test_ZoneData.cpp" test_ZoneData.cpp
# Hack in rwgame sources until there's a per-target test suite # Hack in rwgame sources until there's a per-target test suite
"${CMAKE_SOURCE_DIR}/rwgame/GameConfig.cpp" "${CMAKE_SOURCE_DIR}/rwgame/GameConfig.cpp"
"${CMAKE_SOURCE_DIR}/rwgame/GameWindow.cpp" "${CMAKE_SOURCE_DIR}/rwgame/GameWindow.cpp"
"${CMAKE_SOURCE_DIR}/rwgame/GameInput.cpp" "${CMAKE_SOURCE_DIR}/rwgame/GameInput.cpp"
) )
add_executable(run_tests ${TEST_SOURCES}) add_executable(run_tests ${TEST_SOURCES})
@ -65,16 +65,18 @@ target_include_directories(run_tests
target_include_directories(run_tests target_include_directories(run_tests
PRIVATE PRIVATE
"${CMAKE_SOURCE_DIR}/tests" "${CMAKE_SOURCE_DIR}/tests"
"${CMAKE_SOURCE_DIR}/rwgame" "${CMAKE_SOURCE_DIR}/rwgame"
) )
target_link_libraries(run_tests target_link_libraries(run_tests
rwengine PRIVATE
${OPENGL_LIBRARIES} rwengine
${BULLET_LIBRARIES} ${OPENGL_LIBRARIES}
${SDL2_LIBRARY} ${BULLET_LIBRARIES}
${PNG_LIBRARIES} ${SDL2_LIBRARY}
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) ${PNG_LIBRARIES}
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
)
add_test(UnitTests run_tests) add_test(UnitTests run_tests)