mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-12 14:25:16 +08:00
21 lines
451 B
CMake
21 lines
451 B
CMake
|
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})
|