Home | History | Annotate | Download | only in special_examples
      1 
      2 if(NOT EIGEN_TEST_NOQT)
      3   find_package(Qt4)
      4   if(QT4_FOUND)
      5     include(${QT_USE_FILE})
      6   endif()
      7 endif(NOT EIGEN_TEST_NOQT)
      8 
      9 
     10 if(QT4_FOUND)
     11   add_executable(Tutorial_sparse_example Tutorial_sparse_example.cpp Tutorial_sparse_example_details.cpp)
     12   target_link_libraries(Tutorial_sparse_example ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
     13   
     14   add_custom_command(
     15       TARGET Tutorial_sparse_example
     16       POST_BUILD
     17       COMMAND Tutorial_sparse_example ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg
     18   )
     19                      
     20   add_dependencies(all_examples Tutorial_sparse_example)
     21 endif(QT4_FOUND)
     22