CMakeLists.txt 1.09 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 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)
sylvain thery's avatar
sylvain thery committed
14 15
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib)#release added by visual
	INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/windows_dependencies/include/)
16 17 18
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(Numerical)
sylvain thery's avatar
sylvain thery committed
19 20 21 22 23
	add_subdirectory(Assimp/code)
	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
24
ELSE(WIN32)
sylvain thery's avatar
sylvain thery committed
25
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib/Release)
Pierre Kraemer's avatar
Pierre Kraemer committed
26 27 28
	add_custom_target( FakeTargetOpenCTM ALL "make" 
		WORKING_DIRECTORY ${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
		COMMENT "Custom compile of OpenCTM" )
29 30 31 32 33
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(AntTweakBar)
	add_subdirectory(Numerical)
	add_subdirectory(Assimp)
Pierre Kraemer's avatar
Pierre Kraemer committed
34 35
ENDIF(WIN32)