diff options
-rw-r--r-- | doc/CMakeLists.txt | 8 | ||||
-rw-r--r-- | doc/Doxyfile.in (renamed from Doxyfile.in) | 9 | ||||
-rw-r--r-- | doc/examples/CMakeLists.txt | 14 |
3 files changed, 24 insertions, 7 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 66b259498..265bbbec1 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,4 +1,6 @@ -FILE(GLOB examples "*.cpp") - -FOREACH(example examples) +CONFIGURE_FILE( + ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in + ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile +) +ADD_SUBDIRECTORY(examples) diff --git a/Doxyfile.in b/doc/Doxyfile.in index d009f348c..fb0bd8137 100644 --- a/Doxyfile.in +++ b/doc/Doxyfile.in @@ -6,7 +6,7 @@ DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = Eigen PROJECT_NUMBER = 2.0-alpha1 -OUTPUT_DIRECTORY = ./ +OUTPUT_DIRECTORY = ${CMAKE_BINARY_DIR} CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES @@ -85,7 +85,7 @@ WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -INPUT = src/ ./ +INPUT = ${CMAKE_SOURCE_DIR} INPUT_ENCODING = UTF-8 FILE_PATTERNS = *.c \ *.cc \ @@ -133,7 +133,8 @@ EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXCLUDE_SYMBOLS = -EXAMPLE_PATH = doc/examples/ +EXAMPLE_PATH = ${CMAKE_SOURCE_DIR}/doc/examples \ + ${CMAKE_BINARY_DIR}/doc/examples EXAMPLE_PATTERNS = * EXAMPLE_RECURSIVE = NO IMAGE_PATH = @@ -181,7 +182,7 @@ TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- -GENERATE_LATEX = YES +GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex diff --git a/doc/examples/CMakeLists.txt b/doc/examples/CMakeLists.txt new file mode 100644 index 000000000..b0d342a40 --- /dev/null +++ b/doc/examples/CMakeLists.txt @@ -0,0 +1,14 @@ +FILE(GLOB examples_SRCS "*.cpp") + +FOREACH(example_src ${examples_SRCS}) +GET_FILENAME_COMPONENT(example ${example_src} NAME_WE) +ADD_EXECUTABLE(${example} ${example_src}) +GET_TARGET_PROPERTY(example_executable ${example} LOCATION) +ADD_CUSTOM_COMMAND( + TARGET ${example} + POST_BUILD + COMMAND ${example_executable} + ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out +) +MESSAGE(coucou) +ENDFOREACH(example_src) |