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.

21 lines
486 B

  1. find_package(Qt4 REQUIRED)
  2. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  3. if (CMAKE_COMPILER_IS_GNUCXX)
  4. set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
  5. add_definitions ( "-DNDEBUG" )
  6. endif (CMAKE_COMPILER_IS_GNUCXX)
  7. include_directories( ${QT_INCLUDE_DIR} )
  8. set(mandelbrot_SRCS
  9. mandelbrot.cpp
  10. )
  11. qt4_automoc(${mandelbrot_SRCS})
  12. add_executable(mandelbrot ${mandelbrot_SRCS})
  13. add_dependencies(demos mandelbrot)
  14. target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})