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)
set(CMAKE_CXX_EXTENSIONS OFF)
# 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")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
......@@ -32,15 +32,21 @@ endif()
option(MIRRAGE_BUILD_MESH_CONVERTER "Build the mesh converter (requires assimp)" OFF)
add_subdirectory(dependencies)
add_subdirectory(src)
get_directory_property(hasParent PARENT_DIRECTORY)
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
file(GLOB_RECURSE ALL_FILES
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.*)
add_custom_target(zz_all_project_files SOURCES ${ALL_FILES})
else()
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
assets_ext
core_assets
demo_assets
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