aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/special_examples
diff options
context:
space:
mode:
authorGravatar Deanna Hood <deanna.m.hood@gmail.com>2015-03-18 07:24:13 +1000
committerGravatar Deanna Hood <deanna.m.hood@gmail.com>2015-03-18 07:24:13 +1000
commit2ab4922431cfdde2b88100cea3759807add23157 (patch)
tree3191f7b35dbf5d5b6e0820cc09cb1b4c3c4bb14f /doc/special_examples
parentfd788748889f50536f590b68dfa98db0044e5115 (diff)
Make html directory before generating output image there
Diffstat (limited to 'doc/special_examples')
-rw-r--r--doc/special_examples/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/special_examples/CMakeLists.txt b/doc/special_examples/CMakeLists.txt
index aab80a55d..101fbc5f9 100644
--- a/doc/special_examples/CMakeLists.txt
+++ b/doc/special_examples/CMakeLists.txt
@@ -10,9 +10,10 @@ if(QT4_FOUND)
target_link_libraries(Tutorial_sparse_example ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
add_custom_command(
- TARGET Tutorial_sparse_example
- POST_BUILD
- COMMAND Tutorial_sparse_example ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg
+ TARGET Tutorial_sparse_example
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/../html/
+ COMMAND Tutorial_sparse_example ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg
)
add_dependencies(all_examples Tutorial_sparse_example)