1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Add an option to disable unittest build, & disable them on Docker build (#9677)

This commit is contained in:
Loïc Blot 2020-04-16 20:43:49 +02:00 committed by GitHub
parent 093e79ea78
commit 7539267d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 2 deletions

View file

@ -435,9 +435,12 @@ set(common_SRCS
${JTHREAD_SRCS}
${common_SCRIPT_SRCS}
${UTIL_SRCS}
${UNITTEST_SRCS}
)
if(BUILD_UNITTESTS)
set(common_SRCS ${common_SRCS} ${UNITTEST_SRCS})
endif()
# This gives us the icon and file version information
if(WIN32)
@ -472,8 +475,12 @@ set(client_SRCS
${client_network_SRCS}
${client_irrlicht_changes_SRCS}
${client_SCRIPT_SRCS}
${UNITTEST_CLIENT_SRCS}
)
if(BUILD_UNITTESTS)
set(client_SRCS ${client_SRCS} ${UNITTEST_CLIENT_SRCS})
endif()
list(SORT client_SRCS)
# Server sources