Skip to content

Instantly share code, notes, and snippets.

@FALL1N1
Created March 30, 2014 15:24
Show Gist options
  • Save FALL1N1/9874372 to your computer and use it in GitHub Desktop.
Save FALL1N1/9874372 to your computer and use it in GitHub Desktop.
Load all CPP / H scripts from the Custom folder for CMake.
diff --git a/src/server/game/CMakeLists.txt b/src/server/game/CMakeLists.txt
index f455610..13f594a 100644
--- a/src/server/game/CMakeLists.txt
+++ b/src/server/game/CMakeLists.txt
@@ -48,6 +48,7 @@ file(GLOB_RECURSE sources_Tickets Tickets/*.cpp Tickets/*.h)
file(GLOB_RECURSE sources_Warden Warden/*.cpp Warden/*.h)
file(GLOB_RECURSE sources_Weather Weather/*.cpp Weather/*.h)
file(GLOB_RECURSE sources_World World/*.cpp World/*.h)
+file(GLOB_RECURSE sources_Custom Custom/*.cpp Custom/*.h)
# Create game-libary
@@ -98,6 +99,7 @@ set(game_STAT_SRCS
${sources_Warden}
${sources_Weather}
${sources_World}
+ ${sources_Custom}
)
include_directories(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment