CMakeLists.txt 1.21 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4
cmake_minimum_required(VERSION 2.8)

project(SCHNApps)

5
SET( QT_USE_QTOPENGL TRUE )
Pierre Kraemer's avatar
Pierre Kraemer committed
6
SET( QT_USE_QTXML TRUE )
7 8 9
SET( QT_USE_QTDESIGNER TRUE )
SET( QT_USE_QTGUI TRUE )
SET( QT_USE_QTPLUGIN TRUE )
Pierre Kraemer's avatar
Pierre Kraemer committed
10

11
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC")
12

Pierre Kraemer's avatar
Pierre Kraemer committed
13 14 15 16
#========CGoGN========#
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/.. CACHE STRING "CGoGN root dir")
INCLUDE(${CGoGN_ROOT_DIR}/apps_cmake.txt)

17
find_package(Qt4 REQUIRED)
Pierre Kraemer's avatar
Pierre Kraemer committed
18

19

Pierre Kraemer's avatar
Pierre Kraemer committed
20 21 22 23
#=======QGLViewer=========#
find_package(QGLViewer REQUIRED)


Pierre Kraemer's avatar
Pierre Kraemer committed
24 25 26 27 28
#=======Python=========#
find_package(PythonLibs REQUIRED)



29 30
#======SCHNApps=======#
SET(SCHNApps_ROOT_DIR ${CGoGN_ROOT_DIR}/SCHNApps)
Pierre Kraemer's avatar
Pierre Kraemer committed
31
SET(EXECUTABLE_OUTPUT_PATH ${SCHNApps_ROOT_DIR}/bin)
Pierre Kraemer's avatar
Pierre Kraemer committed
32
SET(LIBRARY_OUTPUT_PATH ${SCHNApps_ROOT_DIR}/lib)
Pierre Kraemer's avatar
Pierre Kraemer committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49

ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/Release Release)
IF (NOT WIN32)
	ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/Debug Debug)
ENDIF (NOT WIN32)


#======Documentation=======#
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(${CMAKE_SOURCE_DIR}/doc/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
add_custom_target(doc
	${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
	WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Doc
	COMMENT "Generating API documentation with Doxygen" VERBATIM
)
endif(DOXYGEN_FOUND)