CMake: Use source_groups to represent the source tree (#1247)

This commit is contained in:
Kargatum
2019-01-10 11:20:32 +07:00
committed by Viste(Кирилл)
parent 82baf637f6
commit c00d5fe0ab
9 changed files with 107 additions and 31 deletions

View File

@@ -61,6 +61,9 @@ include_directories(
${OPENSSL_INCLUDE_DIR}
)
# Group sources
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(authserver
${authserver_SRCS}
${authserver_PCH_SRC}

View File

@@ -213,6 +213,9 @@ include_directories(
${OPENSSL_INCLUDE_DIR}
)
# Group sources
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_library(game STATIC
${game_STAT_SRCS}
${game_STAT_PCH_SRC}

View File

@@ -180,6 +180,9 @@ include_directories(
${MYSQL_INCLUDE_DIR}
)
# Group sources
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
add_library(scripts STATIC
${scripts_STAT_SRCS}
${scripts_STAT_PCH_SRC}

View File

@@ -153,6 +153,9 @@ add_executable(worldserver
${worldserver_PCH_SRC}
)
# Group sources
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})
if( NOT WIN32 )
set_target_properties(worldserver PROPERTIES
COMPILE_DEFINITIONS _TRINITY_CORE_CONFIG="${CONF_DIR}/worldserver.conf"