CMakeLists.txt 1.06 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)

Pierre Kraemer's avatar
Pierre Kraemer committed
17

18 19
#======SCHNApps=======#
SET(SCHNApps_ROOT_DIR ${CGoGN_ROOT_DIR}/SCHNApps)
Pierre Kraemer's avatar
Pierre Kraemer committed
20
SET(EXECUTABLE_OUTPUT_PATH ${SCHNApps_ROOT_DIR}/bin)
Pierre Kraemer's avatar
Pierre Kraemer committed
21
SET(LIBRARY_OUTPUT_PATH ${SCHNApps_ROOT_DIR}/lib)
Pierre Kraemer's avatar
Pierre Kraemer committed
22 23 24 25 26 27 28 29

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


#======Documentation=======#
30 31 32 33 34 35 36 37 38
#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)