aboutsummaryrefslogtreecommitdiffstats
path: root/yage
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-02 13:00:48 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-02 13:00:48 +0000
commit2817eb3841960562d18cee18912cef1bbdb406f1 (patch)
tree9c0615af5988e7eeeafad428a94a73e881ae7a2b /yage
parent8b23c5f125140efcdd97912d4b2df20531b0a557 (diff)
downloadYAGE-2817eb3841960562d18cee18912cef1bbdb406f1.tar.gz
YAGE-2817eb3841960562d18cee18912cef1bbdb406f1.zip
Improving build
Diffstat (limited to 'yage')
-rw-r--r--yage/CMakeLists.txt11
-rw-r--r--yage/core/CMakeLists.txt15
-rw-r--r--yage/math/CMakeLists.txt1
-rw-r--r--yage/physics/CMakeLists.txt6
4 files changed, 6 insertions, 27 deletions
diff --git a/yage/CMakeLists.txt b/yage/CMakeLists.txt
index e89cebd8..5a5674ec 100644
--- a/yage/CMakeLists.txt
+++ b/yage/CMakeLists.txt
@@ -1,14 +1,15 @@
cmake_policy(SET CMP0048 NEW)
-include(core/CMakeLists.txt)
-include(physics/CMakeLists.txt)
-include(math/CMakeLists.txt)
+file(GLOB YAGE_CORE_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} core/*.cpp)
+file(GLOB YAGE_MATH_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} math/*.cpp)
+file(GLOB YAGE_PHYSICS_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} physics/*.cpp)
+file(GLOB YAGE_CURRENT_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
set(YAGE_SOURCES
- yage.cpp
${YAGE_CORE_SOURCES}
${YAGE_PHYSICS_SOURCES}
- ${YAGE_MATH_SOURCES})
+ ${YAGE_MATH_SOURCES}
+ ${YAGE_CURRENT_SOURCES})
set(${PROJECT_NAME}_DIR
${PROJECT_SOURCE_DIR})
diff --git a/yage/core/CMakeLists.txt b/yage/core/CMakeLists.txt
deleted file mode 100644
index 810706ab..00000000
--- a/yage/core/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-set(YAGE_CORE_SOURCES
- core/imageloader.cpp
- core/window.cpp
- core/texturecache.cpp
- core/glslprogram.cpp
- core/sprite.cpp
- core/spritebatch.cpp
- core/spritesheet.cpp
- core/resourcemanager.cpp
- core/sprite.cpp
- core/inputmanager.cpp
- core/picopng.cpp
- core/camera2d.cpp
- core/iomanager.cpp
- )
diff --git a/yage/math/CMakeLists.txt b/yage/math/CMakeLists.txt
deleted file mode 100644
index 761ab59f..00000000
--- a/yage/math/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-set(YAGE_MATH_SOURCES)
diff --git a/yage/physics/CMakeLists.txt b/yage/physics/CMakeLists.txt
deleted file mode 100644
index 46c97596..00000000
--- a/yage/physics/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-set(YAGE_PHYSICS_SOURCES
- physics/rectanglecollider.cpp
- physics/rigidbody.cpp
- physics/particlebody.cpp
- physics/body.cpp
- )