• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1find_package(Qt4 REQUIRED)
2
3set(CMAKE_INCLUDE_CURRENT_DIR ON)
4
5if (CMAKE_COMPILER_IS_GNUCXX)
6   set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
7   add_definitions ( "-DNDEBUG" )
8endif (CMAKE_COMPILER_IS_GNUCXX)
9
10include_directories( ${QT_INCLUDE_DIR} )
11
12set(mandelbrot_SRCS
13    mandelbrot.cpp
14)
15
16qt4_automoc(${mandelbrot_SRCS})
17
18add_executable(mandelbrot ${mandelbrot_SRCS})
19add_dependencies(demos mandelbrot)
20
21target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
22