prefix all Eigen cmake variable with EIGEN_ and switched to lowercase for all cmake files

This commit is contained in:
Gael Guennebaud
2008-12-02 12:59:10 +00:00
parent eb9dadf3b2
commit 20c11bc52c
6 changed files with 100 additions and 94 deletions

View File

@@ -1,4 +1,3 @@
IF(BUILD_DEMOS)
ADD_SUBDIRECTORY(mandelbrot)
ADD_SUBDIRECTORY(opengl)
ENDIF(BUILD_DEMOS)
add_subdirectory(mandelbrot)
add_subdirectory(opengl)

View File

@@ -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})