Home | History | Annotate | Download | only in mandelbrot
      1 find_package(Qt4 REQUIRED)
      2 
      3 set(CMAKE_INCLUDE_CURRENT_DIR ON)
      4 
      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)
      9 
     10 include_directories( ${QT_INCLUDE_DIR} )
     11 
     12 set(mandelbrot_SRCS
     13     mandelbrot.cpp
     14 )
     15 
     16 qt4_automoc(${mandelbrot_SRCS})
     17 
     18 add_executable(mandelbrot ${mandelbrot_SRCS})
     19 add_dependencies(demos mandelbrot)
     20 
     21 target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
     22