CMakeLists.txt
author Dmitriy Morozov <dmitriy@mrzv.org>
Tue, 21 Jul 2009 09:57:31 -0700
changeset 16 bff3d7c294ff
parent 14 172c2683c714
permissions -rw-r--r--
Fixed lights and spheres according to Martin's instructions

project						(VEFViewer)
cmake_minimum_required      (VERSION 2.4)

# Set Qt4 and QGLViewer configuration
find_package				(Qt4 REQUIRED)
find_library				(QGLViewer_LIBRARY                  NAMES QGLViewer)
find_library                (glut_LIBRARY                       NAMES glut)

find_path					(QGLViewer_INCLUDE_DIR QGLViewer/qglviewer.h)
							
set							(QT_USE_QTXML    TRUE)
set							(QT_USE_QTOPENGL TRUE)
include						(${QT_USE_FILE})

set							(sources VEFViewer.cpp main.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} ${QGLViewer_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})

find_library                (boost_program_options_LIBRARY      NAME boost_program_options
                                                                PATHS ${Boost_LIBRARY_DIR})

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

install						(TARGETS VEFViewer
							 RUNTIME DESTINATION bin)