CMakeLists.txt 2.34 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6
cmake_minimum_required(VERSION 2.6)

project(examplesD)

SET(CMAKE_BUILD_TYPE Debug)

Sylvain Thery's avatar
Sylvain Thery committed
7 8 9 10 11 12
# FOR Qt4
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

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

# define libs path
link_directories(
	${CGoGN_ROOT_DIR}/lib/Debug
	${CGoGN_ROOT_DIR}/lib/Release
)
33 34 35 36 37 38
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
39 40 41

#define exec to compile

Sylvain Thery's avatar
Sylvain Thery committed
42 43
QT4_WRAP_CPP(polyhedronsView_moc ../polyhedronsView.h)	
add_executable( polyhedronsViewD ../polyhedronsView.cpp ${polyhedronsView_moc})
44
target_link_libraries( polyhedronsViewD
Pierre Kraemer's avatar
Pierre Kraemer committed
45
		${CGoGN_LIBS_D} ${COMMON_LIBS} ${QT_LIBRARIES} )
46

47 48 49 50 51
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} )

52 53 54 55 56
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} )

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
Pierre Kraemer's avatar
Pierre Kraemer committed
60 61 62 63 64 65 66 67
		${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} )

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