blob: d34b60a543ec4e7acbb8a98b4b220a67aa89a919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
find_package(Qt4 REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (CMAKE_COMPILER_IS_GNUCXX)
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
add_definitions ( "-DNDEBUG" )
endif (CMAKE_COMPILER_IS_GNUCXX)
include_directories( ${QT_INCLUDE_DIR} )
set(mandelbrot_SRCS
mandelbrot.cpp
)
qt4_automoc(${mandelbrot_SRCS})
add_executable(mandelbrot ${mandelbrot_SRCS})
target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|