Skip to content

Commit 4118e15

Browse files
nOOb3167SmallJoker
authored andcommittedFeb 23, 2018
CMakeLists use the source_group command to improve look and feel when generating Visual Studio projects.
The TREE argument of source_group appears in CMake 3.8 therefore check for version.
1 parent cbf891e commit 4118e15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

Diff for: ‎src/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,11 @@ set(server_SRCS
530530
)
531531
list(SORT server_SRCS)
532532

533+
if ((CMAKE_VERSION VERSION_GREATER 3.8) OR (CMAKE_VERSION VERSION_EQUAL 3.8))
534+
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${client_SRCS})
535+
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "Source Files" FILES ${server_SRCS})
536+
endif()
537+
533538
include_directories(
534539
${PROJECT_BINARY_DIR}
535540
${PROJECT_SOURCE_DIR}

0 commit comments

Comments
 (0)