mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
92480ffd26
* remove EIGEN_BUILD_TESTS and siblings * add summary at the end of cmake run, hopefully not too verbose * fix build of quaternion demo * kill remnants of old binary library option
22 lines
486 B
CMake
22 lines
486 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})
|
|
add_dependencies(demos mandelbrot)
|
|
|
|
target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY})
|