Add BUILD_TESTS CMake option

develop
lethosor 2020-03-21 02:38:44 -04:00
parent 77e40a52c0
commit 7d6594bfe8
1 changed files with 6 additions and 0 deletions

@ -474,6 +474,12 @@ if(BUILD_DOCS)
install(FILES "README.html" DESTINATION "${DFHACK_DATA_DESTINATION}") install(FILES "README.html" DESTINATION "${DFHACK_DATA_DESTINATION}")
endif() endif()
option(BUILD_TESTS "Include tests (currently just installs Lua tests into the scripts folder)" OFF)
if(BUILD_TESTS)
install(DIRECTORY ${dfhack_SOURCE_DIR}/test
DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
endif()
# Packaging with CPack! # Packaging with CPack!
set(DFHACK_PACKAGE_SUFFIX "") set(DFHACK_PACKAGE_SUFFIX "")
if(UNIX) if(UNIX)