mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
chore(build): split out component lib
This commit is contained in:
parent
4dd9dfbd78
commit
84c351c621
@ -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
src/component/CMakeLists.txt
Normal file
18
src/component/CMakeLists.txt
Normal 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,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"
|
||||
|
||||
@ -12,6 +12,7 @@ target_include_directories(glue
|
||||
target_link_libraries(glue
|
||||
PRIVATE
|
||||
client
|
||||
component
|
||||
console
|
||||
db
|
||||
event
|
||||
|
||||
Loading…
Reference in New Issue
Block a user