I am removing lua specifically because I am not intending on supporting it on any way. I will manage everything manually in c++, the base is already there since the entire codebase is built for lua, it can be used the same way in c++. This does alienate the type of people that can contribute, this is intended more as a personal project to attempt matching vanilla minecraft. Im not intending on running some kind of massive server so this does just fine. Lua wasnt even that intertwined with cuberite, but I still want to rid it for ease of development. Sorry for any hurt feelings.
41 lines
847 B
CMake
41 lines
847 B
CMake
function(group_sources)
|
|
# 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_static
|
|
libdeflate
|
|
mbedcrypto
|
|
mbedtls
|
|
mbedx509
|
|
sqlite3
|
|
SQLiteCpp
|
|
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})
|
|
endfunction()
|