# Only execute commands if file was not included already if (NOT MEDIEVAL_CONFIG_CMAKE_LOADED) # include user-defined configuration include (${MEDIEVAL_TOWN_PHYSICS_SOURCE_DIR}/user.cmake) # TODO: Automatic build within inVRs does not work yet since inVRs-headers are # not installed during first execution ## check if Tutorial is built within inVRs #if (INVRS_SOURCE_DIR) # # include (${INVRS_SOURCE_DIR}/cmake/config.cmake) # #else (INVRS_SOURCE_DIR) # if Tutorial is built outside of inVRs the inVRs path has to be found # and the include- and library-directories have to be set include (${MEDIEVAL_TOWN_PHYSICS_SOURCE_DIR}/cmake/findINVRS.cmake) include (${INVRS_DIR}/cmake/config.cmake) include (${INVRS_DIR}/tools/libraries/oops/cmake/config.cmake) include_directories (${INVRS_INCLUDE_DIR}) include_directories (${INVRS_INCLUDE_DIR}/inVRs/tools/libraries) link_directories (${INVRS_LIB_DIR}) #endif ( INVRS_SOURCE_DIR) add_definitions (-DUSE_INVRS_RELEASE) set (MEDIEVAL_CONFIG_CMAKE_LOADED ON) endif (NOT MEDIEVAL_CONFIG_CMAKE_LOADED)