CMakeLists.txt 1.07 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2
SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin)

Sylvain Thery's avatar
Sylvain Thery committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# define  libs
SET (COMMON_LIBS ${OPENGL_LIBRARY} ${GLEW_LIBRARY} ${DEVIL_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBXML2_LIBRARIES} ${Boost_REGEX_LIBRARY} ${Boost_THREAD_LIBRARY} gzstream assimp)

# define includes of external libs 
SET(CGoGN_EXT_INCLUDES 
	${LIBXML2_INCLUDE_DIR}
	${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/glm
	${CGoGN_ROOT_DIR}/ThirdParty/Assimp/include )



# FOR Qt4
SET(QT_USE_QTOPENGL TRUE)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

23

Pierre Kraemer's avatar
Pierre Kraemer committed
24

thery's avatar
thery committed
25
SET(CGoGN_LIBS_R topology algo container utils)
26

Pierre Kraemer's avatar
Pierre Kraemer committed
27
IF(WIN32)
thery's avatar
thery committed
28
	SET(CGoGN_LIBS_D topology algo container utils) # libs have same name but in different place in Visual
Pierre Kraemer's avatar
Pierre Kraemer committed
29 30 31
	add_subdirectory(Examples/Release)
	add_subdirectory(Tuto)
ELSE(WIN32)
Pierre Kraemer's avatar
Pierre Kraemer committed
32
	SET(CGoGN_LIBS_D topologyD algoD containerD utilsD)
Pierre Kraemer's avatar
Pierre Kraemer committed
33 34 35 36 37 38
	add_subdirectory(Examples/Release)
	add_subdirectory(Examples/Debug)
	add_subdirectory(Examples/Tests)
	add_subdirectory(Tuto)
ENDIF(WIN32)