projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf891e
)
CMakeLists use the source_group command to improve look and feel when generating...
author
nOOb3167
<nOOb3167@gmail.com>
Mon, 19 Feb 2018 14:01:10 +0000
(15:01 +0100)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Fri, 23 Feb 2018 16:02:02 +0000
(17:02 +0100)
The TREE argument of source_group appears in CMake 3.8 therefore check for version.
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index e7759b7a74b8e5e950496e56067d6071a23b9244..f38022c5db6fc92d7e202a5f2c2d99d4e713f263 100644
(file)
--- a/
src/CMakeLists.txt
+++ b/
src/CMakeLists.txt
@@
-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}