aboutsummaryrefslogtreecommitdiffstats
path: root/yage/CMakeLists.txt
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/CMakeLists.txt
parent8b23c5f125140efcdd97912d4b2df20531b0a557 (diff)
downloadYAGE-2817eb3841960562d18cee18912cef1bbdb406f1.tar.gz
YAGE-2817eb3841960562d18cee18912cef1bbdb406f1.zip
Improving build
Diffstat (limited to 'yage/CMakeLists.txt')
-rw-r--r--yage/CMakeLists.txt11
1 files changed, 6 insertions, 5 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})