diff --git a/CMakeLists.txt b/CMakeLists.txt index 61fa0d118..311e604b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)