Skip to content

Commit

Permalink
CMake: Enable folders
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Dec 3, 2023
1 parent c608685 commit bef7c1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )

# Enable project folders in VS
set_property( GLOBAL PROPERTY USE_FOLDERS ON )

set( C_CXX_COMPILER_FLAGS "" ) # Flags for C and C++ compilers
set( GAME_LINKER_FLAGS "" ) # Flags for Game DLL linker

Expand Down Expand Up @@ -450,6 +453,11 @@ if( USE_UPDATER )
)
endif()

#-----------------------------------------------------------------
# BHL Targets
#-----------------------------------------------------------------
set( CMAKE_FOLDER "HL SDK" )

#-----------------------------------------------------------------
# Client library
#-----------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set( CMAKE_FOLDER "External" )

add_subdirectory( glad )
add_subdirectory( nlohmann_json )
add_subdirectory( pcre )
Expand Down
2 changes: 1 addition & 1 deletion source_sdk
Submodule source_sdk updated 1 files
+1 −1 CMakeLists.txt

0 comments on commit bef7c1b

Please sign in to comment.