Skip to content

Commit

Permalink
Merge pull request #482 from pzychotic/cmake-folders
Browse files Browse the repository at this point in the history
Better project structure for IDEs
  • Loading branch information
Lgt2x authored Jul 4, 2024
2 parents ee9e642 + 12ec7c5 commit 9263055
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions Descent3/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")

add_executable(
porting-tests
porting-tests.cpp
Expand Down
2 changes: 2 additions & 0 deletions md5/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")

add_executable(
md5_tests
../md5.cpp
Expand Down
2 changes: 2 additions & 0 deletions misc/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")

add_executable(
misc_tests
misc_tests.cpp
Expand Down
4 changes: 3 additions & 1 deletion netcon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set(CMAKE_FOLDER "netcon")

include_directories("includes")
add_subdirectory(inetfile)
add_subdirectory(lanclient)
add_subdirectory(mtclient)
add_subdirectory(mtclient)
2 changes: 2 additions & 0 deletions netgames/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_FOLDER "netgames")

include_directories("includes")
add_subdirectory(dmfc)
add_subdirectory(anarchy)
Expand Down
2 changes: 1 addition & 1 deletion scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(CMAKE_FOLDER "Scripts")
set(CMAKE_FOLDER "scripts")

set(CPPS
$<$<PLATFORM_ID:Darwin,Linux>:
Expand Down
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_FOLDER "tests")

add_executable(
byteswap_tests
byteswap_tests.cpp
Expand Down
2 changes: 2 additions & 0 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
set(CMAKE_FOLDER "third_party")

add_subdirectory(stb)

0 comments on commit 9263055

Please sign in to comment.