aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/special_examples
diff options
context:
space:
mode:
authorGravatar Georg Drenkhahn <Georg.Drenkhahn@gmail.com>2014-08-22 12:13:07 +0200
committerGravatar Georg Drenkhahn <Georg.Drenkhahn@gmail.com>2014-08-22 12:13:07 +0200
commit0ba490cf80d9c389de410beaa3551b2a2a72a801 (patch)
treec100022450bcc4ab8dfaba9f9bab9bf283ed848b /doc/special_examples
parent25a3e65a685f66f04b83003f12cd97b91e646c20 (diff)
Fixed CMakeLists.txt files to prevent CMake 3.0.0 warnings about deprecated LOCATION target property.
Small whitespace cleanup in CMakelLists.txt.
Diffstat (limited to 'doc/special_examples')
-rw-r--r--doc/special_examples/CMakeLists.txt16
1 files changed, 5 insertions, 11 deletions
diff --git a/doc/special_examples/CMakeLists.txt b/doc/special_examples/CMakeLists.txt
index 45e2339e3..aab80a55d 100644
--- a/doc/special_examples/CMakeLists.txt
+++ b/doc/special_examples/CMakeLists.txt
@@ -1,4 +1,3 @@
-
if(NOT EIGEN_TEST_NOQT)
find_package(Qt4)
if(QT4_FOUND)
@@ -6,17 +5,16 @@ if(NOT EIGEN_TEST_NOQT)
endif()
endif(NOT EIGEN_TEST_NOQT)
-
if(QT4_FOUND)
add_executable(Tutorial_sparse_example Tutorial_sparse_example.cpp Tutorial_sparse_example_details.cpp)
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
)
-
+
add_dependencies(all_examples Tutorial_sparse_example)
endif(QT4_FOUND)
@@ -26,15 +24,11 @@ if(EIGEN_COMPILER_SUPPORT_CPP11)
target_link_libraries(random_cpp11 ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
add_dependencies(all_examples random_cpp11)
ei_add_target_property(random_cpp11 COMPILE_FLAGS "-std=c++11")
-
- get_target_property(random_cpp11_exec
- random_cpp11 LOCATION)
+
add_custom_command(
TARGET random_cpp11
POST_BUILD
- COMMAND ${random_cpp11_exec}
+ COMMAND random_cpp11
ARGS >${CMAKE_CURRENT_BINARY_DIR}/random_cpp11.out
)
-
-
-endif() \ No newline at end of file
+endif()