chore(build): split out component lib

This commit is contained in:
fallenoak 2025-10-14 11:39:06 -05:00
parent 4dd9dfbd78
commit 84c351c621
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
6 changed files with 24 additions and 4 deletions

View File

@ -1,6 +1,7 @@
add_subdirectory(app)
add_subdirectory(async)
add_subdirectory(client)
add_subdirectory(component)
add_subdirectory(console)
add_subdirectory(db)
add_subdirectory(event)

View File

@ -1,4 +1,4 @@
#include "glue/CCharacterComponent.hpp"
#include "component/CCharacterComponent.hpp"
#include "model/CM2Model.hpp"
#include <storm/Memory.hpp>

View File

@ -1,5 +1,5 @@
#ifndef GLUE_C_CHARACTER_COMPONENT_HPP
#define GLUE_C_CHARACTER_COMPONENT_HPP
#ifndef COMPONENT_C_CHARACTER_COMPONENT_HPP
#define COMPONENT_C_CHARACTER_COMPONENT_HPP
#include <cstdint>

View File

@ -0,0 +1,18 @@
file(GLOB PRIVATE_SOURCES "*.cpp")
add_library(component STATIC
${PRIVATE_SOURCES}
)
target_include_directories(component
PRIVATE
${CMAKE_SOURCE_DIR}/src
)
target_link_libraries(component
PRIVATE
db
model
PUBLIC
storm
)

View File

@ -1,7 +1,7 @@
#include "glue/CCharacterSelection.hpp"
#include "client/ClientServices.hpp"
#include "component/CCharacterComponent.hpp"
#include "db/Db.hpp"
#include "glue/CCharacterComponent.hpp"
#include "glue/CGlueMgr.hpp"
#include "glue/CRealmList.hpp"
#include "glue/Types.hpp"

View File

@ -12,6 +12,7 @@ target_include_directories(glue
target_link_libraries(glue
PRIVATE
client
component
console
db
event