1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00
OpenMW/apps/openmw_test_suite/CMakeLists.txt

44 lines
1.3 KiB
CMake
Raw Normal View History

find_package(GTest REQUIRED)
2018-07-08 17:26:57 +00:00
find_package(GMock REQUIRED)
2018-07-08 17:26:57 +00:00
if (GTEST_FOUND AND GMOCK_FOUND)
include_directories(SYSTEM ${GTEST_INCLUDE_DIRS})
2018-07-08 17:26:57 +00:00
include_directories(SYSTEM ${GMOCK_INCLUDE_DIRS})
file(GLOB UNITTEST_SRC_FILES
../openmw/mwworld/store.cpp
../openmw/mwworld/esmstore.cpp
mwworld/test_store.cpp
2015-11-13 19:27:06 +00:00
mwdialogue/test_keywordsearch.cpp
2016-05-07 19:23:53 +00:00
esm/test_fixed_string.cpp
misc/test_stringops.cpp
2018-07-08 19:22:34 +00:00
nifloader/testbulletnifloader.cpp
2018-03-13 22:49:08 +00:00
detournavigator/navigator.cpp
detournavigator/settingsutils.cpp
detournavigator/recastmeshbuilder.cpp
detournavigator/gettilespositions.cpp
2018-05-26 14:44:25 +00:00
detournavigator/recastmeshobject.cpp
detournavigator/navmeshtilescache.cpp
)
source_group(apps\\openmw_test_suite FILES openmw_test_suite.cpp ${UNITTEST_SRC_FILES})
openmw_add_executable(openmw_test_suite openmw_test_suite.cpp ${UNITTEST_SRC_FILES})
2018-07-08 17:26:57 +00:00
target_link_libraries(openmw_test_suite ${GMOCK_LIBRARIES} components)
# Fix for not visible pthreads functions for linker with glibc 2.15
if (UNIX AND NOT APPLE)
target_link_libraries(openmw_test_suite ${CMAKE_THREAD_LIBS_INIT})
endif()
if (BUILD_WITH_CODE_COVERAGE)
add_definitions(--coverage)
target_link_libraries(openmw_test_suite gcov)
endif()
endif()