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

project(geometryAssertD)

SET(CMAKE_BUILD_TYPE Debug)

#SET (COMMON_LIBS ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${GLEW_LIBRARY} ${DEVIL_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBXML2_LIBRARIES} gzstream AntTweakBar openctm)

Sylvain Thery's avatar
Sylvain Thery committed
9 10 11 12 13 14 15
# 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
16 17 18
# define includes path
include_directories(
	${CGoGN_ROOT_DIR}/include
19 20 21 22 23 24 25 26 27
	/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
Pierre Kraemer's avatar
Pierre Kraemer committed
28 29 30 31 32 33 34 35 36 37 38 39
)

# define libs path
link_directories(
	${CGoGN_ROOT_DIR}/lib/Debug
	${CGoGN_ROOT_DIR}/lib/Release
)

#define exec to compile

add_executable( Geom_orientationD ./Geom_orientation.cpp)
target_link_libraries( Geom_orientationD
Sylvain Thery's avatar
Sylvain Thery committed
40
	${CGoGN_LIBS_D} ${COMMON_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
41 42 43

add_executable( Geom_inclusionD ./Geom_inclusion.cpp)
target_link_libraries( Geom_inclusionD
Sylvain Thery's avatar
Sylvain Thery committed
44
	${CGoGN_LIBS_D} ${COMMON_LIBS} )
45

46 47 48
add_executable( Geom_intersectionD ./Geom_intersection.cpp)
target_link_libraries( Geom_intersectionD
	${CGoGN_LIBS_D} ${COMMON_LIBS} )