mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
[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:
parent
4c574bf198
commit
12ec7c50c7
@ -26,6 +26,8 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
|
||||||
if(FORCE_COLORED_OUTPUT)
|
if(FORCE_COLORED_OUTPUT)
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
|
||||||
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
set(CMAKE_COLOR_DIAGNOSTICS ON)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "tests")
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
porting-tests
|
porting-tests
|
||||||
porting-tests.cpp
|
porting-tests.cpp
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "tests")
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
md5_tests
|
md5_tests
|
||||||
../md5.cpp
|
../md5.cpp
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "tests")
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
misc_tests
|
misc_tests
|
||||||
misc_tests.cpp
|
misc_tests.cpp
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "netcon")
|
||||||
|
|
||||||
include_directories("includes")
|
include_directories("includes")
|
||||||
add_subdirectory(inetfile)
|
add_subdirectory(inetfile)
|
||||||
add_subdirectory(lanclient)
|
add_subdirectory(lanclient)
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "netgames")
|
||||||
|
|
||||||
include_directories("includes")
|
include_directories("includes")
|
||||||
add_subdirectory(dmfc)
|
add_subdirectory(dmfc)
|
||||||
add_subdirectory(anarchy)
|
add_subdirectory(anarchy)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
set(CMAKE_FOLDER "Scripts")
|
set(CMAKE_FOLDER "scripts")
|
||||||
|
|
||||||
set(CPPS
|
set(CPPS
|
||||||
$<$<PLATFORM_ID:Darwin,Linux>:
|
$<$<PLATFORM_ID:Darwin,Linux>:
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
set(CMAKE_FOLDER "tests")
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
byteswap_tests
|
byteswap_tests
|
||||||
byteswap_tests.cpp
|
byteswap_tests.cpp
|
||||||
|
2
third_party/CMakeLists.txt
vendored
2
third_party/CMakeLists.txt
vendored
@ -1 +1,3 @@
|
|||||||
|
set(CMAKE_FOLDER "third_party")
|
||||||
|
|
||||||
add_subdirectory(stb)
|
add_subdirectory(stb)
|
||||||
|
Loading…
Reference in New Issue
Block a user