chore(build): split out component lib

This commit is contained in:
fallenoak committed 2025-10-14 11:39:06 -05:00
1 parent 4dd9dfbd78
commit 84c351c621
6 files changed
+24 -4

No files matched your search

+1
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)
@@ -1,4 +1,4 @@
#include "glue/CCharacterComponent.hpp"
#include "component/CCharacterComponent.hpp"
#include "model/CM2Model.hpp"
#include <storm/Memory.hpp>
@@ -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>
+18
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
)
+1 -1
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"
+1
View File
@@ -12,6 +12,7 @@ target_include_directories(glue
target_link_libraries(glue
PRIVATE
client
component
console
db
event