2020-05-27 18:48:49 -04:00
|
|
|
function(group_sources)
|
|
|
|
# Enable the support for solution folders in MSVC
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
2020-05-16 15:59:10 -04:00
|
|
|
|
2020-05-27 18:48:49 -04:00
|
|
|
# Put projects into solution folders in MSVC:
|
2020-05-16 15:59:10 -04:00
|
|
|
set_target_properties(
|
2020-05-27 18:48:49 -04:00
|
|
|
event_core_static
|
|
|
|
event_extra_static
|
|
|
|
expat
|
|
|
|
fmt
|
2021-04-11 19:25:51 -04:00
|
|
|
jsoncpp_static
|
2021-01-11 11:39:43 -05:00
|
|
|
libdeflate
|
2020-07-13 07:35:38 -04:00
|
|
|
lualib
|
2020-05-27 18:48:49 -04:00
|
|
|
luaexpat
|
|
|
|
mbedcrypto
|
|
|
|
mbedtls
|
|
|
|
mbedx509
|
|
|
|
lsqlite
|
|
|
|
sqlite3
|
|
|
|
SQLiteCpp
|
|
|
|
tolualib
|
|
|
|
PROPERTIES FOLDER Libraries
|
2020-05-16 15:59:10 -04:00
|
|
|
)
|
|
|
|
|
2020-05-27 18:48:49 -04:00
|
|
|
# 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()
|
2020-05-16 15:59:10 -04:00
|
|
|
|
2020-05-27 18:48:49 -04:00
|
|
|
# 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})
|
|
|
|
endfunction()
|