Commit a1276bb5 authored by Florian Oetke's avatar Florian Oetke
Browse files

modified structure for easier integration as git submodule

parent 485a8b35
...@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) ...@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_EXTENSIONS OFF)
# required at top-level # required at top-level
set(ROOT_DIR ${CMAKE_SOURCE_DIR}) set(ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${ROOT_DIR}/modules") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${ROOT_DIR}/modules")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
...@@ -32,15 +32,21 @@ endif() ...@@ -32,15 +32,21 @@ endif()
option(MIRRAGE_BUILD_MESH_CONVERTER "Build the mesh converter (requires assimp)" OFF) option(MIRRAGE_BUILD_MESH_CONVERTER "Build the mesh converter (requires assimp)" OFF)
add_subdirectory(dependencies) get_directory_property(hasParent PARENT_DIRECTORY)
add_subdirectory(src) if(!hasParent)
option(MIRRAGE_BUILD_DEMO "Build the demo application" ON)
# custom target that does nothing but references all files so they show up in QtCreator
file(GLOB_RECURSE ALL_FILES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.*)
# custom target that does nothing but references all files so they show up in QtCreator add_custom_target(zz_all_project_files SOURCES ${ALL_FILES})
file(GLOB_RECURSE ALL_FILES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} else()
${CMAKE_CURRENT_SOURCE_DIR}/*.*) option(MIRRAGE_BUILD_DEMO "Build the demo application" OFF)
endif()
add_custom_target(zz_all_project_files SOURCES ${ALL_FILES}) add_subdirectory(dependencies)
add_subdirectory(src)
assets core_assets
assets_ext demo_assets
extensions/* extensions/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment