mirror of
https://github.com/minetest/minetest.git
synced 2024-12-17 19:55:41 +01:00
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.
This commit is contained in:
parent
cbf891ef1d
commit
4118e150f8
@ -530,6 +530,11 @@ set(server_SRCS
|
|||||||
)
|
)
|
||||||
list(SORT 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(
|
include_directories(
|
||||||
${PROJECT_BINARY_DIR}
|
${PROJECT_BINARY_DIR}
|
||||||
${PROJECT_SOURCE_DIR}
|
${PROJECT_SOURCE_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user