Commit 93a6beb5 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - copy of resources works properly and doc targets added

parent 71a4dd1e
......@@ -613,9 +613,6 @@ RECURSIVE = YES
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = src/ext \
src/core/dataHandler/io/nifti \
src/core/dataHandler/io/biosig \
src/core/dataHandler/io/biosigWin \
src/core/common/platformDependent/visualStudio/inttypes.h \
src/modules/lic/fibernavigator \
src/modules/lic/fantom
......
......@@ -613,9 +613,6 @@ RECURSIVE = YES
# subdirectory from a directory tree whose root is specified with the INPUT tag.
EXCLUDE = src/ext \
src/core/dataHandler/io/nifti \
src/core/dataHandler/io/biosig \
src/core/dataHandler/io/biosigWin \
src/core/common/platformDependent/visualStudio/inttypes.h \
src/modules/lic/fibernavigator \
src/modules/lic/fantom
......
......@@ -174,12 +174,13 @@ INCLUDE_DIRECTORIES( ${OPENSCENEGRAPH_INCLUDE_DIRS} )
#
# ---------------------------------------------------------------------------------------------------------------------------------------------------
# TODO(all): is this needed?
INCLUDE( FindPythonInterp )
# -----------------------------------------------------------------------------------------------------------------------------------------------
# CXX Test
# See http://cxxtest.tigris.org
INCLUDE( FindPythonInterp )
# Try to find it
FIND_PACKAGE( CxxTest QUIET )
MARK_AS_ADVANCED( CXXTEST_PERL_TESTGEN_EXECUTABLE )
......@@ -254,3 +255,44 @@ ADD_SUBDIRECTORY( core )
# build core
# ADD_SUBDIRECTORY( qt4gui )
# ---------------------------------------------------------------------------------------------------------------------------------------------------
#
# Resource Copy
# - This simply copies the structure from ../resources to the build directory
#
# ---------------------------------------------------------------------------------------------------------------------------------------------------
# as all the resources with the correct directory structure reside in ../resources, this target is very easy to handle
SET( ResourcesPath "${PROJECT_SOURCE_DIR}/../resources" )
ADD_CUSTOM_TARGET( ResourceConfiguration
ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory "${ResourcesPath}" "${PROJECT_BINARY_DIR}/"
COMMENT "Copying resources to build directory"
)
# ---------------------------------------------------------------------------------------------------------------------------------------------------
#
# Documentation
# - Call doxygen here
#
# ---------------------------------------------------------------------------------------------------------------------------------------------------
#let doxygen do the work
ADD_CUSTOM_TARGET( doc
COMMAND doxygen ${PROJECT_SOURCE_DIR}/../doc/developer/doxygenConfig
COMMAND chmod -R g+r ${PROJECT_SOURCE_DIR}/../doc/developer/html
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/..
COMMENT "Build doxygen documentation"
VERBATIM
)
# NOTE: this full documentation also includes call/caller graphs, colaboration graphs and nicer inheritance graphs
# but needs "dot" from graphviz to render them.
ADD_CUSTOM_TARGET( fulldoc
COMMAND doxygen ${PROJECT_SOURCE_DIR}/../doc/developer/doxygenConfigFull
COMMAND chmod -R g+r ${PROJECT_SOURCE_DIR}/../doc/developer/htmlFull
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/..
COMMENT "Build verbose doxygen documentation"
VERBATIM
)
......@@ -54,7 +54,8 @@ TARGET_LINK_LIBRARIES( ${OWCoreName} ${OWExtBioSigName} ${OWExtEEPName} ${OWExtN
SETUP_TESTS( "${CORE_TEST_FILES}" "${OWCoreName}" "" )
# ---------------------------------------------------------------------------------------------------------------------------------------------------
# Copy Resources
# Copy Shaders
# ---------------------------------------------------------------------------------------------------------------------------------------------------
# this is a script that puts all fonts to the right place
#--------------------------------------------------------------------
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/bin/${SHARED_FILES_RELATIVE}/fonts)
FILE( GLOB_RECURSE ALL_GE_FONTS ${OW_SOURCE_DIR}/core/graphicsEngine/fonts/* )
FOREACH( fname ${ALL_GE_FONTS} )
#message( ${fname} )
configure_file( ${fname} ${CMAKE_BINARY_DIR}/bin/${SHARED_FILES_RELATIVE}/fonts/ COPYONLY)
ENDFOREACH( fname )
# this is a script that puts all needed shell scripts to the right place
#-----------------------------------------------------------------------
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR})
FILE( GLOB_RECURSE ALL_SHELLSCRIPTS ${OW_SOURCE_DIR}/../scripts/* )
FOREACH( fname ${ALL_SHELLSCRIPTS} )
#message( ${fname} )
configure_file( ${fname} ${CMAKE_BINARY_DIR}/bin/ COPYONLY)
ENDFOREACH( fname )
# this is a script that puts all needed shell scripts to the right place
#-----------------------------------------------------------------------
SET( CMAKE_BINARY_DIRWIN ${CMAKE_BINARY_DIR}/bin )
message( ${CMAKE_BINARY_DIRWIN} )
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIRWIN})
FILE( GLOB_RECURSE ALL_SHELLSCRIPTS ${OW_SOURCE_DIR}/../scripts/* )
FOREACH( fname ${ALL_SHELLSCRIPTS} )
#message( ${fname} )
configure_file( ${fname} ${CMAKE_BINARY_DIR}/bin/ COPYONLY)
ENDFOREACH( fname )
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