CMakeLists.txt
author Dmitriy Morozov <morozov@cs.duke.edu>
Mon, 29 Jan 2007 10:56:09 -0500
changeset 11 b4cd9b9d6ca5
child 12 e8080b26ae1c
permissions -rw-r--r--
Switched to CMake

project						(VEFViewer)

# Set Qt4 and QGLViewer configuration
find_package				(Qt4 REQUIRED)
find_library				(QGLViewer_LIBRARY
							 NAMES QGLViewer
							 PATHS /usr/lib /usr/local/lib)
set							(QT_USE_QTXML    TRUE)
set							(QT_USE_QTOPENGL TRUE)
include						(${QT_USE_FILE})

set							(sources VEFViewer.cpp main.cpp sphere.cpp)
set							(moc_hdrs VEFViewer.h)
qt4_wrap_cpp				(moc_srcs ${moc_hdrs})
set							(uis viewerInterface.ui)
qt4_wrap_ui					(uis_h ${uis})
include_directories			(${CMAKE_CURRENT_BINARY_DIR} .)

add_executable				(VEFViewer ${sources} ${moc_srcs} ${uis_h})
target_link_libraries		(VEFViewer ${QT_LIBRARIES} ${QGLViewer_LIBRARY})