eigen/demos/mandelbrot/CMakeLists.txt

21 lines
451 B
CMake
Raw Normal View History

2008-06-29 04:33:47 +08:00
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})