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

project(examples)

Sylvain Thery's avatar
Sylvain Thery committed
5
6
#SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
Pierre Kraemer's avatar
Pierre Kraemer committed
7

Sylvain Thery's avatar
Sylvain Thery committed
8

Pierre Kraemer's avatar
Pierre Kraemer committed
9
10
# define includes path
include_directories(
11
	${CMAKE_CURRENT_BINARY_DIR}
Pierre Kraemer's avatar
Pierre Kraemer committed
12
	${CGoGN_ROOT_DIR}/include
Sylvain Thery's avatar
Sylvain Thery committed
13
	${CGoGN_EXT_INCLUDES}
Pierre Kraemer's avatar
Pierre Kraemer committed
14
15
16
)

# define libs path
Sylvain Thery's avatar
Sylvain Thery committed
17
18
19
20
21
#IF(WIN32)
#	link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName) ${Boost_LIBRARY_DIRS} )
#ELSE(WIN32)
#	link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
#ENDIF(WIN32)
thery's avatar
thery committed
22

Pierre Kraemer's avatar
Pierre Kraemer committed
23
24
25

#define exec to compile

26
27
QT4_WRAP_CPP( frame_manip_moc ../frame_manip.h )
add_executable( frame_manip ../frame_manip.cpp ${frame_manip_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
28
target_link_libraries( frame_manip ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
29
		
30
QT4_WRAP_CPP( texturesExample_moc ../texturesExample.h )
31
add_executable( texturesExample ../texturesExample.cpp ${texturesExample_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
32
target_link_libraries( texturesExample ${CGoGN_LIBS} ${CGoGN_EXT_LIBS}  )
33

Pierre Kraemer's avatar
Pierre Kraemer committed
34
35
QT4_WRAP_CPP(simpleMap3_moc ../simpleMap3.h)
add_executable( simpleMap3 ../simpleMap3.cpp ${simpleMap3_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
36
target_link_libraries( simpleMap3 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
37

38
QT4_WRAP_CPP( simpleGMap2_moc ../simpleGMap2.h )
39
add_executable( simpleGMap2 ../simpleGMap2.cpp ${simpleGMap2_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
40
target_link_libraries( simpleGMap2 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
41

42
QT4_WRAP_CPP( simpleGMap3_moc ../simpleGMap3.h )
43
add_executable( simpleGMap3 ../simpleGMap3.cpp ${simpleGMap3_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
44
target_link_libraries( simpleGMap3 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
45
                
46
47
QT4_WRAP_CPP( extrusionView_moc ../extrusionView.h )
add_executable( extrusionView ../extrusionView.cpp ${extrusionView_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
48
target_link_libraries( extrusionView ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
49
50
51

QT4_WRAP_UI( viewer_ui ../viewer.ui )
QT4_WRAP_CPP( viewer_moc ../viewer.h )
52
add_executable( viewer ../viewer.cpp ${viewer_moc} ${viewer_ui} )
Sylvain Thery's avatar
Sylvain Thery committed
53
target_link_libraries( viewer ${CGoGN_LIBS} ${NUMERICAL_LIBS} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
54

55
56
QT4_WRAP_UI( clipping_ui ../clipping.ui )
QT4_WRAP_CPP( clipping_moc ../clipping.h )
57
add_executable( clipping ../clipping.cpp ${clipping_ui} ${clipping_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
58
target_link_libraries( clipping	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
59
60
61

QT4_WRAP_UI( volumeExplorer_ui ../volumeExplorer.ui )
QT4_WRAP_CPP( volumeExplorer_moc ../volumeExplorer.h )
62
add_executable( volumeExplorer ../volumeExplorer.cpp ${volumeExplorer_ui} ${volumeExplorer_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
63
target_link_libraries( volumeExplorer ${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
Sylvain Thery's avatar
Sylvain Thery committed
64

65
66
67
QT4_WRAP_UI( mcmesh_ui ../mcmesh.ui )
QT4_WRAP_CPP( mcmesh_moc ../mcmesh.h )
add_executable( mcmesh ../mcmesh.cpp ${mcmesh_moc} ${mcmesh_ui} )
Sylvain Thery's avatar
Sylvain Thery committed
68
target_link_libraries( mcmesh ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
69
70
71

QT4_WRAP_CPP( concave_rendering_moc ../concave_rendering.h )
add_executable( concave_rendering ../concave_rendering.cpp ${concave_rendering_moc} ${concave_rendering_ui} )
Sylvain Thery's avatar
Sylvain Thery committed
72
target_link_libraries( concave_rendering ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
Sylvain Thery's avatar
Sylvain Thery committed
73
74
75

QT4_WRAP_CPP( viewerOBJ_moc ../viewerOBJ.h )
add_executable( viewerOBJ ../viewerOBJ.cpp ${viewerOBJ_moc} )
Sylvain Thery's avatar
Sylvain Thery committed
76
target_link_libraries( viewerOBJ ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )