mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
feat(Cmake): set minimal support version 3.8 and added interface libs for world and auth (#2295)
* Added interface library authserver-interface * Added interfaca library worldserver-interface * Added Copyright's in auth and world server Cmake's files
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Copyright (C)
|
||||
#
|
||||
# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL3 v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
|
||||
#
|
||||
# This file is free software; as a special exception the author gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
@@ -30,22 +31,7 @@ endif()
|
||||
# Group sources
|
||||
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_executable(authserver
|
||||
${PRIVATE_SOURCES}
|
||||
)
|
||||
|
||||
add_dependencies(authserver revision.h)
|
||||
|
||||
if( NOT WIN32 )
|
||||
set_target_properties(authserver PROPERTIES
|
||||
COMPILE_DEFINITIONS _TRINITY_REALM_CONFIG="${CONF_DIR}/authserver.conf"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(authserver
|
||||
PUBLIC
|
||||
common
|
||||
)
|
||||
add_library(authserver-interface INTERFACE)
|
||||
|
||||
CollectIncludeDirectories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
@@ -53,9 +39,27 @@ CollectIncludeDirectories(
|
||||
# Exclude
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders)
|
||||
|
||||
target_include_directories(authserver
|
||||
target_include_directories(authserver-interface
|
||||
INTERFACE
|
||||
${PUBLIC_INCLUDES})
|
||||
|
||||
add_executable(authserver
|
||||
${PRIVATE_SOURCES})
|
||||
|
||||
add_dependencies(authserver revision.h)
|
||||
|
||||
if(NOT WIN32)
|
||||
set_target_properties(authserver PROPERTIES
|
||||
COMPILE_DEFINITIONS _TRINITY_REALM_CONFIG="${CONF_DIR}/authserver.conf")
|
||||
endif()
|
||||
|
||||
target_link_libraries(authserver
|
||||
PRIVATE
|
||||
authserver-interface
|
||||
PUBLIC
|
||||
${PUBLIC_INCLUDES}
|
||||
common)
|
||||
|
||||
target_include_directories(authserver
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user