From 60072c1d8089ffd3294e76636198d14710be95b8 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 9 Sep 2017 07:55:22 +0100 Subject: Restructuring --- yage/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 yage/CMakeLists.txt (limited to 'yage/CMakeLists.txt') diff --git a/yage/CMakeLists.txt b/yage/CMakeLists.txt new file mode 100644 index 00000000..d45ffa90 --- /dev/null +++ b/yage/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_policy(SET CMP0048 NEW) + +project(yage + VERSION 0.1.1.0 + LANGUAGES CXX + ) + +include(base/CMakeLists.txt) +include(physics/CMakeLists.txt) +include(math/CMakeLists.txt) + +set(YAGE_SOURCES + ${YAGE_BASE_SOURCES} + ${YAGE_PHYSICS_SOURCES} + ${YAGE_MATH_SOURCES} + ) + +set(${PROJECT_NAME}_DIR + ${PROJECT_SOURCE_DIR}) + +add_library(${PROJECT_NAME} + ${YAGE_SOURCES} + ) + +target_include_directories(${PROJECT_NAME} + PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} + ) + +target_link_libraries(${PROJECT_NAME} + ${OPENGL_LIBRARIES} + ${GLEW_LIBRARIES} + ${SDL2_LIBRARIES} + ) -- cgit