<commit_before>
link_directories(${EXTERNAL_BINARY_DIR})

set(PROJECT MapServer)
project(${PROJECT})

if (GCC)
  add_compiler_flags(-Wl,-Map=${PROJECT}.map)
  add_linker_flags(-Wl,-rpath -Wl,./)
endif()

SET( SOURCES_HEADER
  include/cmapserver.h
  include/cmapclient.h
  include/cmapisc.h
  include/id_manager.h
  include/map_manager.h
  include/entity_system.h
  include/nearby.h
  include/gm_commands.h
  include/chat/normal_chat.h
  include/chat/shout_chat.h
  include/chat/whisper_chat.h
  include/combat/combat.h
  include/map/change_map.h
  include/mouse/mouse_cmd.h
  include/lua_api.h
  include/lua_db.h
  include/lua_item.h
  include/lua_loader.h
  include/lua_storage.h
  include/components/spawner.h
  include/items/inventory.h
  include/utils/name_to_session.h
  )

SET( SOURCES_MAIN
  src/main
  src/cmapserver.cpp
  src/cmapclient.cpp
  src/cmapisc.cpp
  src/id_manager.cpp
  src/map_manager.cpp
  src/entity_system.cpp
  src/nearby.cpp
  src/gm_commands.cpp
  src/chat/normal_chat.cpp
  src/chat/shout_chat.cpp
  src/chat/whisper_chat.cpp
  src/combat/combat.cpp
  src/map/change_map.cpp
  src/mouse/mouse_cmd.cpp
  src/lua_db.cpp
  src/lua_item.cpp
  src/lua_loader.cpp
  src/lua_storage.cpp
  src/items/inventory.cpp
  src/utils/name_to_session.cpp
  )

add_executable(${PROJECT} ${SOURCES_MAIN} ${SOURCES_HEADER})

target_include_directories(${PROJECT} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS "${${CMAKE_CXX_COMPILER_ID}_LINK_FLAGS}")

add_dependencies(${PROJECT} RosePackets_generated)

target_link_libraries(${PROJECT} PUBLIC CURL::libcurl)
if(NOT LUA_FOUND)
  add_dependencies(${PROJECT} lua::lua)
endif()
target_link_libraries(${PROJECT} 
  PUBLIC 
    lua::lua
)

add_dependencies(${PROJECT} RoseCommon)
target_link_libraries(${PROJECT} <commit_msg>Update CMakeLists.txt<commit_after>
link_directories(${EXTERNAL_BINARY_DIR})

set(PROJECT MapServer)
project(${PROJECT})

if (GCC)
  add_compiler_flags(-Wl,-Map=${PROJECT}.map)
  add_linker_flags(-Wl,-rpath -Wl,./)
endif()

SET( SOURCES_HEADER
  include/cmapserver.h
  include/cmapclient.h
  include/cmapisc.h
  include/id_manager.h
  include/map_manager.h
  include/entity_system.h
  include/nearby.h
  include/gm_commands.h
  include/chat/normal_chat.h
  include/chat/shout_chat.h
  include/chat/whisper_chat.h
  include/combat/combat.h
  include/map/change_map.h
  include/mouse/mouse_cmd.h
  include/lua_api.h
  include/lua_db.h
  include/lua_item.h
  include/lua_loader.h
  include/lua_storage.h
  include/components/spawner.h
  include/items/inventory.h
  include/utils/name_to_session.h
  include/utils/getters.h
  )

SET( SOURCES_MAIN
  src/main
  src/cmapserver.cpp
  src/cmapclient.cpp
  src/cmapisc.cpp
  src/id_manager.cpp
  src/map_manager.cpp
  src/entity_system.cpp
  src/nearby.cpp
  src/gm_commands.cpp
  src/chat/normal_chat.cpp
  src/chat/shout_chat.cpp
  src/chat/whisper_chat.cpp
  src/combat/combat.cpp
  src/map/change_map.cpp
  src/mouse/mouse_cmd.cpp
  src/lua_db.cpp
  src/lua_item.cpp
  src/lua_loader.cpp
  src/lua_storage.cpp
  src/items/inventory.cpp
  src/utils/name_to_session.cpp
  src/utils/getters.cpp
  )

add_executable(${PROJECT} ${SOURCES_MAIN} ${SOURCES_HEADER})

target_include_directories(${PROJECT} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
set_target_properties(${PROJECT} PROPERTIES LINK_FLAGS "${${CMAKE_CXX_COMPILER_ID}_LINK_FLAGS}")

add_dependencies(${PROJECT} RosePackets_generated)

target_link_libraries(${PROJECT} PUBLIC CURL::libcurl)
if(NOT LUA_FOUND)
  add_dependencies(${PROJECT} lua::lua)
endif()
target_link_libraries(${PROJECT} 
  PUBLIC 
    lua::lua
)

add_dependencies(${PROJECT} RoseCommon)
target_link_libraries(${PROJECT} 
{'fraction_non_alphanumeric': 0.11888297872340425, 'fraction_numerical': 0.0, 'mean_word_length': 4.9042386185243325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '734093', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1492, 'n_words': 171}