|
|
@ -426,8 +426,7 @@ macro(dfhack_test name files)
|
|
|
|
message("dfhack_test(${name}, ${files})")
|
|
|
|
message("dfhack_test(${name}, ${files})")
|
|
|
|
add_executable(${name} ${files})
|
|
|
|
add_executable(${name} ${files})
|
|
|
|
target_include_directories(${name} PUBLIC depends/googletest/googletest/include)
|
|
|
|
target_include_directories(${name} PUBLIC depends/googletest/googletest/include)
|
|
|
|
target_link_libraries(${name} dfhack gtest)
|
|
|
|
target_link_libraries(${name} dfhack gtest SDL)
|
|
|
|
set_target_properties(${name} PROPERTIES COMPILE_FLAGS "-Wno-sign-compare")
|
|
|
|
|
|
|
|
add_test(NAME ${name} COMMAND ${name})
|
|
|
|
add_test(NAME ${name} COMMAND ${name})
|
|
|
|
endmacro()
|
|
|
|
endmacro()
|
|
|
|
include(CTest)
|
|
|
|
include(CTest)
|
|
|
@ -544,7 +543,7 @@ if(BUILD_TESTS)
|
|
|
|
message(SEND_ERROR "test/scripts must not exist in the dfhack repo since it would conflict with the tests installed from the scripts repo.")
|
|
|
|
message(SEND_ERROR "test/scripts must not exist in the dfhack repo since it would conflict with the tests installed from the scripts repo.")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
install(DIRECTORY ${dfhack_SOURCE_DIR}/test
|
|
|
|
install(DIRECTORY ${dfhack_SOURCE_DIR}/test
|
|
|
|
DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
|
|
|
|
DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
|
|
|
|
install(FILES ci/test.lua DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
|
|
|
|
install(FILES ci/test.lua DESTINATION ${DFHACK_DATA_DESTINATION}/scripts)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|