2137: Rename antibot -> ddnet-antibot and install it on cmake r=heinrich5991 a=Ryozuki

Fixes #2134

Co-authored-by: Ryozuki <ryo@ryozuki.xyz>
This commit is contained in:
bors[bot] 2020-04-12 15:15:11 +00:00 committed by GitHub
commit ffc1078783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1132,7 +1132,7 @@ endif()
# Antibot
if(ANTIBOT)
set(TARGET_ANTIBOT antibot)
set(TARGET_ANTIBOT ddnet-antibot)
add_library(${TARGET_ANTIBOT} SHARED ${ANTIBOT_SRC})
list(APPEND TARGETS_OWN ${TARGET_ANTIBOT})
endif()
@ -1481,6 +1481,9 @@ if(NOT DEV)
install(DIRECTORY data DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/ddnet COMPONENT data)
install(TARGETS ${TARGET_CLIENT} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
install(TARGETS ${TARGET_SERVER} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT server)
if(ANTIBOT)
install(TARGETS ${TARGET_ANTIBOT} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT server)
endif()
install(TARGETS ${TARGETS_TOOLS} DESTINATION ${CMAKE_INSTALL_LIBDIR}/ddnet COMPONENT tools)
install(FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications COMPONENT client)
install(FILES other/ddnet.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo COMPONENT client)