Skip to content

Commit

Permalink
CMakeLists use the source_group command to improve look and feel when…
Browse files Browse the repository at this point in the history
… generating Visual Studio projects.

The TREE argument of source_group appears in CMake 3.8 therefore check for version.
  • Loading branch information
nOOb3167 authored and SmallJoker committed Feb 23, 2018
1 parent cbf891e commit 4118e15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -530,6 +530,11 @@ set(server_SRCS
)
list(SORT server_SRCS)

if ((CMAKE_VERSION VERSION_GREATER 3.8) OR (CMAKE_VERSION VERSION_EQUAL 3.8))
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${client_SRCS})
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${server_SRCS})
endif()

include_directories(
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}
Expand Down

0 comments on commit 4118e15

Please sign in to comment.