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

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

#define exec to compile

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

32 33 34
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
35
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS}  )
36

37 38 39
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
40
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
41

42 43 44
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
45
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
46
                
47 48 49
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
50
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
51

52 53 54
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
55
                ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} )
56

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

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
66
	${CGoGN_LIBS_D} ${NUMERICAL_LIBS} ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
67

68 69 70 71
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
72
	${CGoGN_LIBS_D}  ${CGoGN_EXT_LIBS}  )
73