CMakeLists.txt 2.55 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 24
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
25 26 27

#define exec to compile

Sylvain Thery's avatar
Sylvain Thery committed
28 29
QT4_WRAP_CPP(polyhedronsView_moc ../polyhedronsView.h)	
add_executable( polyhedronsViewD ../polyhedronsView.cpp ${polyhedronsView_moc})
30
target_link_libraries( polyhedronsViewD
Pierre Kraemer's avatar
Pierre Kraemer committed
31
		${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )
32

33 34 35 36 37
QT4_WRAP_CPP(frame_manip_moc ../frame_manip.h)  
add_executable( frame_manipD ../frame_manip.cpp ${frame_manip_moc})
target_link_libraries( frame_manipD
                ${CGoGN_LIBS_D} ${COMMON_LIBS}  ${QT_LIBRARIES} )

38 39 40 41 42
QT4_WRAP_CPP(texturesExample_moc ../texturesExample.h)  
add_executable( texturesExampleD ../texturesExample.cpp ${texturesExample_moc} )
target_link_libraries( texturesExampleD
                ${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )

43 44 45 46 47
QT4_WRAP_CPP(simpleMap3_moc ../simpleMap3.h)  
add_executable( simpleMap3D ../simpleMap3.cpp ${simpleMap3_moc} )
target_link_libraries( simpleMap3D
                ${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )
                
48 49 50 51 52
QT4_WRAP_CPP(simpleGMap2_moc ../simpleGMap2.h)  
add_executable( simpleGMap2D ../simpleGMap2.cpp ${simpleGMap2_moc} )
target_link_libraries( simpleGMap2D
                ${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )

53 54 55 56 57
QT4_WRAP_CPP(simpleGMap3_moc ../simpleGMap3.h)  
add_executable( simpleGMap3D ../simpleGMap3.cpp ${simpleGMap3_moc} )
target_link_libraries( simpleGMap3D
                ${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )

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

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 
	${CGoGN_LIBS_D} ${NUMERICAL_LIBS} ${COMMON_LIBS} ${QT_LIBRARIES} )

69 70 71 72 73 74
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
	${CGoGN_LIBS_D}  ${COMMON_LIBS}  ${QT_LIBRARIES} )