CMakeLists.txt 2.94 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 5 6 7 8

project(examplesD)

SET(CMAKE_BUILD_TYPE Debug)

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

# define libs path
link_directories(
	${CGoGN_ROOT_DIR}/lib/Debug
	${CGoGN_ROOT_DIR}/lib/Release
unknown's avatar
unknown committed
18
	${Boost_LIBRARY_DIRS}
Pierre Kraemer's avatar
Pierre Kraemer committed
19
)
20
IF(WIN32)
unknown's avatar
unknown committed
21 22
	link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
	${Boost_LIBRARY_DIRS})
23 24 25
ELSE(WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/Debug  ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF(WIN32)
Pierre Kraemer's avatar
Pierre Kraemer committed
26 27 28

#define exec to compile

Sylvain Thery's avatar
Sylvain Thery committed
29 30
QT4_WRAP_CPP(polyhedronsView_moc ../polyhedronsView.h)	
add_executable( polyhedronsViewD ../polyhedronsView.cpp ${polyhedronsView_moc})
31
target_link_libraries( polyhedronsViewD
Sylvain Thery's avatar
Sylvain Thery committed
32
		${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
33

34 35 36
QT4_WRAP_CPP(frame_manip_moc ../frame_manip.h)  
add_executable( frame_manipD ../frame_manip.cpp ${frame_manip_moc})
target_link_libraries( frame_manipD
Sylvain Thery's avatar
Sylvain Thery committed
37
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS}  )
38

39 40 41
QT4_WRAP_CPP(texturesExample_moc ../texturesExample.h)  
add_executable( texturesExampleD ../texturesExample.cpp ${texturesExample_moc} )
target_link_libraries( texturesExampleD
Sylvain Thery's avatar
Sylvain Thery committed
42
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
43

44 45 46
QT4_WRAP_CPP(simpleMap3_moc ../simpleMap3.h)  
add_executable( simpleMap3D ../simpleMap3.cpp ${simpleMap3_moc} )
target_link_libraries( simpleMap3D
Sylvain Thery's avatar
Sylvain Thery committed
47
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
48
                
49 50 51
QT4_WRAP_CPP(simpleGMap2_moc ../simpleGMap2.h)  
add_executable( simpleGMap2D ../simpleGMap2.cpp ${simpleGMap2_moc} )
target_link_libraries( simpleGMap2D
Sylvain Thery's avatar
Sylvain Thery committed
52
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
53

54 55 56
QT4_WRAP_CPP(simpleGMap3_moc ../simpleGMap3.h)  
add_executable( simpleGMap3D ../simpleGMap3.cpp ${simpleGMap3_moc} )
target_link_libraries( simpleGMap3D
Sylvain Thery's avatar
Sylvain Thery committed
57
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
58

Sylvain Thery's avatar
Sylvain Thery committed
59 60
QT4_WRAP_CPP(extrusionView_moc ../extrusionView.h)	
add_executable( extrusionViewD ../extrusionView.cpp ${extrusionView_moc})
61
target_link_libraries( extrusionViewD
Sylvain Thery's avatar
Sylvain Thery committed
62
		${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
63 64 65 66 67

QT4_WRAP_UI( viewer_ui ../viewer.ui )
QT4_WRAP_CPP( viewer_moc ../viewer.h )
add_executable( viewerD ../viewer.cpp ${viewer_moc} ${viewer_ui})
target_link_libraries( viewerD 
Sylvain Thery's avatar
Sylvain Thery committed
68
	${CGoGN_LIBS_D} ${NUMERICAL_LIBS} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
69

70 71 72 73
QT4_WRAP_UI( clipping_ui ../clipping.ui )
QT4_WRAP_CPP( clipping_moc ../clipping.h )
add_executable( clippingD ../clipping.cpp ${clipping_ui} ${clipping_moc})
target_link_libraries( clippingD
Sylvain Thery's avatar
Sylvain Thery committed
74
	${CGoGN_LIBS_D}  ${CGoGN_EXT_LIBS}  )
75 76 77 78 79

QT4_WRAP_UI( volumeExplorer_ui ../volumeExplorer.ui )
QT4_WRAP_CPP( volumeExplorer_moc ../volumeExplorer.h )
add_executable( volumeExplorerD ../volumeExplorer.cpp ${volumeExplorer_ui} ${volumeExplorer_moc})
target_link_libraries( volumeExplorerD
Sylvain Thery's avatar
Sylvain Thery committed
80 81 82 83 84 85 86 87
	${CGoGN_LIBS_D}  ${CGoGN_EXT_LIBS}  )	
	
QT4_WRAP_UI( mcmesh_ui ../mcmesh.ui )
QT4_WRAP_CPP( mcmesh_moc ../mcmesh.h )
add_executable( mcmeshD ../mcmesh.cpp 
	${mcmesh_moc}
	${mcmesh_ui} )
target_link_libraries( mcmeshD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS})