1 find_package(Qt4 REQUIRED)
3 set(CMAKE_INCLUDE_CURRENT_DIR ON)
5 if (CMAKE_COMPILER_IS_GNUCXX)
6 set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
7 add_definitions ( "-DNDEBUG" )
8 endif (CMAKE_COMPILER_IS_GNUCXX)
10 include_directories( ${QT_INCLUDE_DIR} )
16 qt4_automoc(${mandelbrot_SRCS})
18 add_executable(mandelbrot ${mandelbrot_SRCS})
19 add_dependencies(demos mandelbrot)
21 target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})