You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. if(NOT STORMEIGEN_TEST_NOQT)
  2. find_package(Qt4)
  3. if(QT4_FOUND)
  4. include(${QT_USE_FILE})
  5. endif()
  6. endif(NOT STORMEIGEN_TEST_NOQT)
  7. if(QT4_FOUND)
  8. add_executable(Tutorial_sparse_example Tutorial_sparse_example.cpp Tutorial_sparse_example_details.cpp)
  9. target_link_libraries(Tutorial_sparse_example ${STORMEIGEN_STANDARD_LIBRARIES_TO_LINK_TO} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
  10. add_custom_command(
  11. TARGET Tutorial_sparse_example
  12. POST_BUILD
  13. COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/../html/
  14. COMMAND Tutorial_sparse_example ARGS ${CMAKE_CURRENT_BINARY_DIR}/../html/Tutorial_sparse_example.jpeg
  15. )
  16. add_dependencies(all_examples Tutorial_sparse_example)
  17. endif(QT4_FOUND)
  18. check_cxx_compiler_flag("-std=c++11" STORMEIGEN_COMPILER_SUPPORT_CPP11)
  19. if(STORMEIGEN_COMPILER_SUPPORT_CPP11)
  20. add_executable(random_cpp11 random_cpp11.cpp)
  21. target_link_libraries(random_cpp11 ${STORMEIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
  22. add_dependencies(all_examples random_cpp11)
  23. ei_add_target_property(random_cpp11 COMPILE_FLAGS "-std=c++11")
  24. add_custom_command(
  25. TARGET random_cpp11
  26. POST_BUILD
  27. COMMAND random_cpp11
  28. ARGS >${CMAKE_CURRENT_BINARY_DIR}/random_cpp11.out
  29. )
  30. endif()