Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

CMakeLists.txt 1.15 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)
thery's avatar
thery committed
23
24
25
26
#	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
27
ELSE(WIN32)
sylvain thery's avatar
sylvain thery committed
28
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib/Release)
Pierre Kraemer's avatar
Pierre Kraemer committed
29
30
31
	add_custom_target( FakeTargetOpenCTM ALL "make" 
		WORKING_DIRECTORY ${CGoGN_ROOT_DIR}/ThirdParty/OpenCTM
		COMMENT "Custom compile of OpenCTM" )
32
33
34
35
36
	add_subdirectory(Zinri/Build)
	add_subdirectory(gzstream/Build)
	add_subdirectory(AntTweakBar)
	add_subdirectory(Numerical)
	add_subdirectory(Assimp)
Pierre Kraemer's avatar
Pierre Kraemer committed
37
38
ENDIF(WIN32)