[CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls.

This commit is contained in:
Thomas Roß 2024-07-03 19:55:04 +02:00
parent 4c574bf198
commit 12ec7c50c7
9 changed files with 18 additions and 2 deletions

View File

@ -26,6 +26,8 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if(FORCE_COLORED_OUTPUT)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
set(CMAKE_COLOR_DIAGNOSTICS ON)

View File

@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")
add_executable(
porting-tests
porting-tests.cpp

View File

@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")
add_executable(
md5_tests
../md5.cpp

View File

@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")
add_executable(
misc_tests
misc_tests.cpp

View File

@ -1,4 +1,6 @@
set(CMAKE_FOLDER "netcon")
include_directories("includes")
add_subdirectory(inetfile)
add_subdirectory(lanclient)
add_subdirectory(mtclient)
add_subdirectory(mtclient)

View File

@ -1,3 +1,5 @@
set(CMAKE_FOLDER "netgames")
include_directories("includes")
add_subdirectory(dmfc)
add_subdirectory(anarchy)

View File

@ -1,4 +1,4 @@
set(CMAKE_FOLDER "Scripts")
set(CMAKE_FOLDER "scripts")
set(CPPS
$<$<PLATFORM_ID:Darwin,Linux>:

View File

@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")
add_executable(
byteswap_tests
byteswap_tests.cpp

View File

@ -1 +1,3 @@
set(CMAKE_FOLDER "third_party")
add_subdirectory(stb)