mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
add some tooling for tests
This commit is contained in:
parent
f96437f6bf
commit
dcefc54093
2 changed files with 8 additions and 2 deletions
|
@ -50,6 +50,7 @@ if [[ $CI_CLANG_TIDY ]]; then
|
|||
-DCMAKE_CXX_CLANG_TIDY="clang-tidy;--warnings-as-errors=*"
|
||||
-DBUILD_UNITTESTS=ON
|
||||
-DBUILD_OPENCS_TESTS=ON
|
||||
-DBUILD_TOOL_TESTS=ON
|
||||
-DBUILD_BENCHMARKS=ON
|
||||
)
|
||||
fi
|
||||
|
@ -106,6 +107,7 @@ if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
|||
-DBUILD_NIFTEST=OFF \
|
||||
-DBUILD_UNITTESTS=${BUILD_UNITTESTS} \
|
||||
-DBUILD_OPENCS_TESTS=${BUILD_UNITTESTS} \
|
||||
-DBUILD_TOOL_TESTS=${BUILD_UNITTESTS} \
|
||||
-DBUILD_BENCHMARKS=${BUILD_BENCHMARKS} \
|
||||
..
|
||||
else
|
||||
|
|
|
@ -55,6 +55,7 @@ option(BUILD_BENCHMARKS "Build benchmarks with Google Benchmark" OFF)
|
|||
option(BUILD_NAVMESHTOOL "Build navmesh tool" ON)
|
||||
option(BUILD_BULLETOBJECTTOOL "Build Bullet object tool" ON)
|
||||
option(BUILD_OPENCS_TESTS "Build OpenMW Construction Set tests" OFF)
|
||||
option(BUILD_TOOL_TESTS "Build OpenMW related tool tests" OFF)
|
||||
|
||||
set(OpenGL_GL_PREFERENCE LEGACY) # Use LEGACY as we use GL2; GLNVD is for GL3 and up.
|
||||
|
||||
|
@ -661,7 +662,7 @@ if (BUILD_LAUNCHER)
|
|||
add_subdirectory( apps/launcher )
|
||||
endif()
|
||||
|
||||
if (BUILD_MWINIIMPORTER)
|
||||
if (BUILD_MWINIIMPORTER OR BUILD_TOOL_TESTS)
|
||||
add_subdirectory( apps/mwiniimporter )
|
||||
endif()
|
||||
|
||||
|
@ -684,7 +685,6 @@ endif(BUILD_NIFTEST)
|
|||
# UnitTests
|
||||
if (BUILD_UNITTESTS)
|
||||
add_subdirectory( apps/openmw_test_suite )
|
||||
add_subdirectory( apps/mwiniimporter_tests )
|
||||
endif()
|
||||
|
||||
if (BUILD_BENCHMARKS)
|
||||
|
@ -703,6 +703,10 @@ if (BUILD_OPENCS_TESTS)
|
|||
add_subdirectory(apps/opencs_tests)
|
||||
endif()
|
||||
|
||||
if (BUILD_TOOL_TESTS)
|
||||
add_subdirectory( apps/mwiniimporter_tests )
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
if (MSVC)
|
||||
foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue