mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Build: Inherit the features and warning flags privately
This commit is contained in:
@@ -61,8 +61,8 @@ target_include_directories(common
|
||||
target_link_libraries(common
|
||||
PRIVATE
|
||||
process
|
||||
PUBLIC
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
boost
|
||||
fmt
|
||||
g3dlib
|
||||
|
||||
@@ -40,6 +40,8 @@ if (NOT WIN32)
|
||||
endif()
|
||||
|
||||
target_link_libraries(bnetserver
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
shared)
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ target_include_directories(database
|
||||
add_definitions(-DTRINITY_API_EXPORT_DATABASE)
|
||||
|
||||
target_link_libraries(database
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
mysql)
|
||||
|
||||
@@ -49,10 +49,11 @@ target_include_directories(game
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
target_link_libraries(game
|
||||
PUBLIC
|
||||
game-interface
|
||||
PRIVATE
|
||||
efsw)
|
||||
trinity-core-interface
|
||||
efsw
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
set_target_properties(game
|
||||
PROPERTIES
|
||||
|
||||
@@ -162,6 +162,8 @@ foreach(SCRIPT_MODULE ${SCRIPT_MODULE_LIST})
|
||||
${SCRIPT_MODULE_PRIVATE_SOURCES}
|
||||
${SCRIPT_MODULE_PRIVATE_SCRIPTLOADER})
|
||||
target_link_libraries(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
game)
|
||||
set_target_properties(${SCRIPT_MODULE_PROJECT_NAME}
|
||||
@@ -202,6 +204,8 @@ add_library(scripts STATIC
|
||||
${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(scripts
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
|
||||
@@ -40,6 +40,8 @@ target_include_directories(shared
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
target_link_libraries(shared
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
database
|
||||
rapidjson
|
||||
|
||||
@@ -44,6 +44,8 @@ endif()
|
||||
set_target_properties(worldserver PROPERTIES LINK_FLAGS "${worldserver_LINK_FLAGS}")
|
||||
|
||||
target_link_libraries(worldserver
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
scripts
|
||||
game
|
||||
|
||||
@@ -19,6 +19,8 @@ GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_executable(connection_patcher ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(connection_patcher
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
)
|
||||
|
||||
@@ -15,6 +15,8 @@ CollectSourceFiles(
|
||||
add_library(extractor_common STATIC ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(extractor_common
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
casc
|
||||
common)
|
||||
|
||||
@@ -27,6 +27,8 @@ target_include_directories(mapextractor
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/loadlib)
|
||||
|
||||
target_link_libraries(mapextractor
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
extractor_common)
|
||||
|
||||
|
||||
@@ -19,6 +19,8 @@ endif()
|
||||
add_executable(mmaps_generator ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(mmaps_generator
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
Recast
|
||||
|
||||
@@ -18,9 +18,12 @@ endif()
|
||||
add_executable(vmap4assembler ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(vmap4assembler
|
||||
common
|
||||
casc
|
||||
zlib)
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
common
|
||||
casc
|
||||
zlib)
|
||||
|
||||
set_target_properties(vmap4assembler
|
||||
PROPERTIES
|
||||
|
||||
@@ -20,6 +20,8 @@ endif()
|
||||
add_executable(vmap4extractor ${PRIVATE_SOURCES})
|
||||
|
||||
target_link_libraries(vmap4extractor
|
||||
PRIVATE
|
||||
trinity-core-interface
|
||||
PUBLIC
|
||||
bzip2
|
||||
extractor_common)
|
||||
|
||||
Reference in New Issue
Block a user