Merge pull request #482 from pzychotic/cmake-folders

Better project structure for IDEs
This commit is contained in:
Louis Gombert 2024-07-04 18:36:03 +00:00 committed by GitHub
commit 9263055e73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)