diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-16 21:59:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-16 21:59:10 +0200 |
commit | 9e8598fb1ca359143600d6bb2e8b317126a86bcc (patch) | |
tree | 677c51b708937ee8fbcdb2da8e180e874878d77a /CMake/GroupSources.cmake | |
parent | Travis: Fix ccache on debug builds (#4741) (diff) | |
download | cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar.gz cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar.bz2 cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar.lz cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar.xz cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.tar.zst cuberite-9e8598fb1ca359143600d6bb2e8b317126a86bcc.zip |
Diffstat (limited to 'CMake/GroupSources.cmake')
-rw-r--r-- | CMake/GroupSources.cmake | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/CMake/GroupSources.cmake b/CMake/GroupSources.cmake new file mode 100644 index 000000000..0f1762110 --- /dev/null +++ b/CMake/GroupSources.cmake @@ -0,0 +1,42 @@ +# Enable the support for solution folders in MSVC +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + +# Put projects into solution folders in MSVC: +set_target_properties( + event_core_static + event_extra_static + expat + fmt + jsoncpp_lib + lua + luaexpat + mbedcrypto + mbedtls + mbedx509 + lsqlite + sqlite3 + SQLiteCpp + tolualib + zlib + PROPERTIES FOLDER Libraries +) + +# luaproxy not generated on anything else +if(WIN32) + set_target_properties( + luaproxy + PROPERTIES FOLDER Support + ) +endif() + +if(${BUILD_TOOLS}) + set_target_properties( + MCADefrag + ProtoProxy + PROPERTIES FOLDER Tools + ) +endif() + +# Put all files into one project, separate by the folders: +get_property(TARGET_SOURCE_FILES TARGET ${CMAKE_PROJECT_NAME} PROPERTY SOURCES) +source_group(TREE "${PROJECT_SOURCE_DIR}/src" FILES ${TARGET_SOURCE_FILES}) |