|
|
|
@ -426,8 +426,7 @@ macro(dfhack_test name files)
|
|
|
|
|
message("dfhack_test(${name}, ${files})")
|
|
|
|
|
add_executable(${name} ${files})
|
|
|
|
|
target_include_directories(${name} PUBLIC depends/googletest/googletest/include)
|
|
|
|
|
target_link_libraries(${name} dfhack gtest)
|
|
|
|
|
set_target_properties(${name} PROPERTIES COMPILE_FLAGS "-Wno-sign-compare")
|
|
|
|
|
target_link_libraries(${name} dfhack gtest SDL)
|
|
|
|
|
add_test(NAME ${name} COMMAND ${name})
|
|
|
|
|
endmacro()
|
|
|
|
|
include(CTest)
|
|
|
|
|