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:
Kargatum
2019-09-21 18:25:56 +07:00
committed by GitHub
parent bd4f8b5b14
commit 3518c9e9f5
3 changed files with 49 additions and 105 deletions

View File

@@ -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})