Project restructuring [PART.2]

This commit is contained in:
Yehonal
2016-08-23 12:11:46 +02:00
parent 54bd100573
commit 0355064321
141 changed files with 250 additions and 243 deletions

View File

@@ -28,7 +28,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1)
set(AC_PATH_ROOT "${CMAKE_SOURCE_DIR}")
# set macro-directory
set(CMAKE_MODULE_PATH "${AC_PATH_ROOT}/modules/acore/cmake/macros")
set(CMAKE_MODULE_PATH "${AC_PATH_ROOT}/modules/worldengine/nucleus/src/cmake/macros")
include(CheckCXXSourceRuns)
include(CheckIncludeFiles)
@@ -87,6 +87,26 @@ include(src/cmake/genrev.cmake)
# print out the results before continuing
include(src/cmake/showoptions.cmake)
#
# Loading framework
#
add_subdirectory(modules/worldengine/deps)
if( SERVERS OR TOOLS)
add_subdirectory(modules/worldengine/nucleus)
add_subdirectory(modules/worldengine/lib-collision)
endif()
if( TOOLS )
add_subdirectory(modules/acore/extractors)
endif()
#
# Loading dyn modules
#
# add modules and dependencies
CU_SUBDIRLIST(sub_DIRS "${CMAKE_SOURCE_DIR}/modules" FALSE FALSE)
FOREACH(subdir ${sub_DIRS})
@@ -97,6 +117,10 @@ FOREACH(subdir ${sub_DIRS})
endif()
ENDFOREACH()
#
# Loading application sources
#
CU_RUN_HOOK("BEFORE_SRC_LOAD")
# add core sources