CMakeLists.txt 699 Bytes
Newer Older
1 2
cmake_minimum_required(VERSION 2.6)

Pierre Kraemer's avatar
Pierre Kraemer committed
3 4 5 6
#include(ExternalProject)

project(CGoGN_ThirdParty)

7 8 9 10 11
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/..)

find_package(OpenGL)
find_package(GLUT)

Pierre Kraemer's avatar
Pierre Kraemer committed
12 13
#On Windows we use AntTweakBar/OpenCTM of dependencies, not compiled
IF(WIN32)
14 15 16 17
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(Numerical)
	add_subdirectory(Assimp)
Pierre Kraemer's avatar
Pierre Kraemer committed
18 19 20 21
ELSE(WIN32)
	add_custom_target( FakeTargetOpenCTM ALL "make" 
		WORKING_DIRECTORY ${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
		COMMENT "Custom compile of OpenCTM" )
22 23 24 25 26
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(AntTweakBar)
	add_subdirectory(Numerical)
	add_subdirectory(Assimp)
Pierre Kraemer's avatar
Pierre Kraemer committed
27 28
ENDIF(WIN32)