diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-12-02 12:59:10 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-12-02 12:59:10 +0000 |
commit | 20c11bc52ce8dcb6eecc16dda70fa4a498f32a4a (patch) | |
tree | 01ce5659c4758baf2efdc9e8886e30ba40972cf5 /demos | |
parent | eb9dadf3b28eb936c581256c54d27b4c6d654113 (diff) |
prefix all Eigen cmake variable with EIGEN_ and switched to lowercase for all cmake files
Diffstat (limited to 'demos')
-rw-r--r-- | demos/CMakeLists.txt | 7 | ||||
-rw-r--r-- | demos/mandelbrot/CMakeLists.txt | 22 |
2 files changed, 14 insertions, 15 deletions
diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index 64298baf4..4e8f5164f 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -1,4 +1,3 @@ -IF(BUILD_DEMOS) -ADD_SUBDIRECTORY(mandelbrot) -ADD_SUBDIRECTORY(opengl) -ENDIF(BUILD_DEMOS) + +add_subdirectory(mandelbrot) +add_subdirectory(opengl) diff --git a/demos/mandelbrot/CMakeLists.txt b/demos/mandelbrot/CMakeLists.txt index b7d948e88..d34b60a54 100644 --- a/demos/mandelbrot/CMakeLists.txt +++ b/demos/mandelbrot/CMakeLists.txt @@ -1,20 +1,20 @@ -FIND_PACKAGE(Qt4 REQUIRED) +find_package(Qt4 REQUIRED) -SET(CMAKE_INCLUDE_CURRENT_DIR ON) +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) +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} ) +include_directories( ${QT_INCLUDE_DIR} ) -SET(mandelbrot_SRCS +set(mandelbrot_SRCS mandelbrot.cpp ) -QT4_AUTOMOC(${mandelbrot_SRCS}) +qt4_automoc(${mandelbrot_SRCS}) -ADD_EXECUTABLE(mandelbrot ${mandelbrot_SRCS}) +add_executable(mandelbrot ${mandelbrot_SRCS}) -TARGET_LINK_LIBRARIES(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) +target_link_libraries(mandelbrot ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY}) |