CMakeLists.txt 1.2 KB
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
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/..)

find_package(OpenGL)
find_package(GLUT)
thery's avatar
thery committed
11

12 13 14
IF (APPLE)
	SET(CMAKE_OSX_ARCHITECTURES x86_64)
ENDIF(APPLE)
Pierre Kraemer's avatar
Pierre Kraemer committed
15 16
#On Windows we use AntTweakBar/OpenCTM of dependencies, not compiled
IF(WIN32)
sylvain thery's avatar
sylvain thery committed
17 18
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib)#release added by visual
	INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/windows_dependencies/include/)
19 20 21
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(Numerical)
sylvain thery's avatar
sylvain thery committed
22
	add_subdirectory(Assimp/code)
23
	add_subdirectory(Tools)
thery's avatar
thery committed
24 25 26 27
#	if(CMAKE_CONFIGURATION_TYPES)
#		set(CMAKE_CONFIGURATION_TYPES Release)
#		set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING "Use only Release configuration for ThirdParty" FORCE)
#	endif()
Pierre Kraemer's avatar
Pierre Kraemer committed
28
ELSE(WIN32)
sylvain thery's avatar
sylvain thery committed
29
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib/Release)
Pierre Kraemer's avatar
Pierre Kraemer committed
30 31 32
	add_custom_target( FakeTargetOpenCTM ALL "make" 
		WORKING_DIRECTORY ${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
		COMMENT "Custom compile of OpenCTM" )
33 34 35 36 37
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(AntTweakBar)
	add_subdirectory(Numerical)
	add_subdirectory(Assimp)
38
	add_subdirectory(Tools)
Pierre Kraemer's avatar
Pierre Kraemer committed
39 40
ENDIF(WIN32)