remove unnecessary target modifications

develop
myk002 2022-11-28 17:40:06 -08:00
parent 88074dacf0
commit d0a6a3e930
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
2 changed files with 2 additions and 5 deletions

@ -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)

@ -397,8 +397,6 @@ if(APPLE)
target_link_libraries(dfhack ncurses)
set_target_properties(dfhack PROPERTIES VERSION 1.0.0)
set_target_properties(dfhack PROPERTIES SOVERSION 1.0.0)
elseif(UNIX)
target_link_libraries(dfhack SDL)
endif()
target_link_libraries(dfhack protobuf-lite clsocket lua jsoncpp_static dfhack-version ${PROJECT_LIBS})