CMakeLists.txt 2.61 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6 7
cmake_minimum_required(VERSION 2.6)

project(examples)

SET(CMAKE_BUILD_TYPE Release)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")

8 9 10 11 12 13 14
# FOR Qt4
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})


Pierre Kraemer's avatar
Pierre Kraemer committed
15 16
# define includes path
include_directories(
17
	${CMAKE_CURRENT_BINARY_DIR}
Pierre Kraemer's avatar
Pierre Kraemer committed
18 19 20 21 22 23 24 25 26
	/usr/include/libxml2/
	${CGoGN_ROOT_DIR}/include
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical
	${CGoGN_ROOT_DIR}/ThirdParty/Numerical/UFconfig
	${CGoGN_ROOT_DIR}/ThirdParty/gzstream
	${CGoGN_ROOT_DIR}/ThirdParty/Zinri
	${CGoGN_ROOT_DIR}/ThirdParty/AntTweakBar/include
	${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
	${CGoGN_ROOT_DIR}/ThirdParty/Assimp/include
Sylvain Thery's avatar
Sylvain Thery committed
27
	${CGoGN_ROOT_DIR}/ThirdParty/glm
Pierre Kraemer's avatar
Pierre Kraemer committed
28 29 30
)

# define libs path
thery's avatar
thery committed
31 32 33 34 35 36
IF(WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName) )
ELSE(WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF(WIN32)

Pierre Kraemer's avatar
Pierre Kraemer committed
37 38 39

#define exec to compile

Sylvain Thery's avatar
Sylvain Thery committed
40 41 42
#add_executable( miniTest ../miniTest.cpp)
#target_link_libraries( miniTest
#	container topology utils algo  numerical lapack blas f2c ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
43

Sylvain Thery's avatar
Sylvain Thery committed
44 45 46
#add_executable( Viewer ../Viewer.cpp)
#target_link_libraries( Viewer
#	container topology utils algo  ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
47

Sylvain Thery's avatar
Sylvain Thery committed
48 49 50
#add_executable( simpleGMap2 ../simpleGMap2.cpp)
#target_link_libraries( simpleGMap2
#	container topology utils algo ${COMMON_LIBS} Zinri)
Pierre Kraemer's avatar
Pierre Kraemer committed
51 52 53 54 55

# add_executable( hm_convexhull ../hm_convexhull.cpp)
# target_link_libraries( hm_convexhull
# 	topology utils algo ${COMMON_LIBS})

Sylvain Thery's avatar
Sylvain Thery committed
56 57 58
#add_executable( squelette3carte ../squelette3carte.cpp)
#target_link_libraries( squelette3carte
#	container topology utils algo  numerical lapack blas f2c ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
59
	
Sylvain Thery's avatar
Sylvain Thery committed
60 61 62
#add_executable( decimationVolumique ../decimationVolumique.cpp)
#target_link_libraries( decimationVolumique
#	container topology utils algo  numerical lapack blas f2c ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
63
	
Sylvain Thery's avatar
Sylvain Thery committed
64 65 66
#add_executable( triangulation ../triangulation.cpp)
#target_link_libraries( triangulation
#	container topology utils algo ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
67

Sylvain Thery's avatar
Sylvain Thery committed
68 69 70
#add_executable( ter_meshes ../ter_meshes.cpp)
#target_link_libraries( ter_meshes
#	container topology utils algo ${COMMON_LIBS} )
71 72 73

QT4_WRAP_CPP(polyhedronsView_moc ../polyhedronsView.h)	
add_executable( polyhedronsView ../polyhedronsView.cpp ${polyhedronsView_moc})
74
target_link_libraries( polyhedronsView
75
		${CGoGN_LIBS_R} ${COMMON_LIBS}  ${QT_LIBRARIES} )
76

77 78
QT4_WRAP_CPP(extrusionView_moc ../extrusionView.h)	
add_executable( extrusionView ../extrusionView.cpp ${extrusionView_moc})
79
target_link_libraries( extrusionView
80
		${CGoGN_LIBS_R} ${COMMON_LIBS}  ${QT_LIBRARIES} )
81
        
Sylvain Thery's avatar
Sylvain Thery committed
82 83 84
#add_executable( scene ../scene.cpp)
#target_link_libraries( scene
#        container topology utils algo ${COMMON_LIBS} )