eigen/demos/mandelbrot/CMakeLists.txt
Hans Johnson 6fb3e5f176 STYLE: Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the block.
This is no longer the preferred style.
2019-10-31 11:36:27 -05:00

22 lines
462 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 ()
include_directories( ${QT_INCLUDE_DIR} )
set(mandelbrot_SRCS
mandelbrot.cpp
)
qt4_automoc(${mandelbrot_SRCS})
add_executable(mandelbrot ${mandelbrot_SRCS})
add_dependencies(demos mandelbrot)
target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})