Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

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


Sylvain Thery's avatar
Sylvain Thery committed
15
16
find_package(Boost COMPONENTS regex REQUIRED)

Pierre Kraemer's avatar
Pierre Kraemer committed
17
18
# define includes path
include_directories(
19
	${CMAKE_CURRENT_BINARY_DIR}
Pierre Kraemer's avatar
Pierre Kraemer committed
20
21
22
23
24
25
26
27
28
	/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
29
	${CGoGN_ROOT_DIR}/ThirdParty/glm
30
	${Boost_INCLUDE_DIRS}
Pierre Kraemer's avatar
Pierre Kraemer committed
31
32
33
)

# define libs path
thery's avatar
thery committed
34
IF(WIN32)
35
	link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)  ${Boost_LIBRARY_DIRS})
thery's avatar
thery committed
36
37
38
39
ELSE(WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF(WIN32)

Pierre Kraemer's avatar
Pierre Kraemer committed
40
41
42

#define exec to compile

43
44
QT4_WRAP_CPP(polyhedronsView_moc ../polyhedronsView.h)	
add_executable( polyhedronsView ../polyhedronsView.cpp ${polyhedronsView_moc})
45
target_link_libraries( polyhedronsView
46
		${CGoGN_LIBS_R} ${COMMON_LIBS}  ${QT_LIBRARIES} )
47

48
49
50
51
QT4_WRAP_CPP(frame_manip_moc ../frame_manip.h)	
add_executable( frame_manip ../frame_manip.cpp ${frame_manip_moc})
target_link_libraries( frame_manip
		${CGoGN_LIBS_R} ${COMMON_LIBS}  ${QT_LIBRARIES} )
52
53
54
55
56
		
QT4_WRAP_CPP(texturesExample_moc ../texturesExample.h)  
add_executable( texturesExample ../texturesExample.cpp ${texturesExample_moc} )
target_link_libraries( texturesExample
		${CGoGN_LIBS_R} ${COMMON_LIBS} ${QT_LIBRARIES} )
57

58
59
QT4_WRAP_CPP(extrusionView_moc ../extrusionView.h)	
add_executable( extrusionView ../extrusionView.cpp ${extrusionView_moc})
60
target_link_libraries( extrusionView
61
		${CGoGN_LIBS_R} ${COMMON_LIBS}  ${QT_LIBRARIES} )
Pierre Kraemer's avatar
Pierre Kraemer committed
62
63
64
65
66
67
68

QT4_WRAP_UI( viewer_ui ../viewer.ui )
QT4_WRAP_CPP( viewer_moc ../viewer.h )
add_executable( viewer ../viewer.cpp ${viewer_moc} ${viewer_ui})
target_link_libraries( viewer
	${CGoGN_LIBS_R} ${NUMERICAL_LIBS} ${COMMON_LIBS} ${QT_LIBRARIES} )

69
70
71
72
QT4_WRAP_UI( clipping_ui ../clipping.ui )
QT4_WRAP_CPP( clipping_moc ../clipping.h )
add_executable( clipping ../clipping.cpp ${clipping_ui} ${clipping_moc})
target_link_libraries( clipping
untereiner's avatar
untereiner committed
73
	${CGoGN_LIBS_R}  ${COMMON_LIBS}  ${QT_LIBRARIES} )
74