CMakeLists.txt 1.04 KB
Newer Older
1 2
cmake_minimum_required(VERSION 2.6)

Pierre Kraemer's avatar
Pierre Kraemer committed
3 4
project(CGoGN_ThirdParty)

Sylvain Thery's avatar
Sylvain Thery committed
5

6
SET(CGoGN_ROOT_DIR ${CMAKE_SOURCE_DIR}/..)
7
SET(CMAKE_BUILD_TYPE Release)
thery's avatar
thery committed
8

Sylvain Thery's avatar
Sylvain Thery committed
9 10 11
# for shared or not shared
SET (BUILD_SHARED_LIBS OFF CACHE BOOL 
	"if used all library are build as shared type (.so /dylib/dll).")
Sylvain Thery's avatar
Sylvain Thery committed
12

13 14 15
SET (WITH_ASSIMP ON CACHE BOOL "build with Assimp")
SET (WITH_NUMERICAL ON CACHE BOOL "build with numerical libs")
SET (WITH_ZINRI ON CACHE BOOL "build with Zinri libs")
Sylvain Thery's avatar
Sylvain Thery committed
16

17 18 19
IF (APPLE)
	SET(CMAKE_OSX_ARCHITECTURES x86_64)
ENDIF(APPLE)
20

Pierre Kraemer's avatar
Pierre Kraemer committed
21
IF(WIN32)
sylvain thery's avatar
sylvain thery committed
22 23
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib)#release added by visual
	INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/windows_dependencies/include/)
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
ENDIF(WIN32)

28

29 30
add_subdirectory(Tools Tools/build)

31 32 33 34 35 36
# add_subdirectory(gzstream gzstream/build)

IF (WITH_ZINRI)
	add_subdirectory(Zinri Zinri/build)
ENDIF(WITH_ZINRI)

Sylvain Thery's avatar
Sylvain Thery committed
37
IF (WITH_ASSIMP)
38
	add_subdirectory(Assimp Assimp/build)
Sylvain Thery's avatar
Sylvain Thery committed
39
ENDIF (WITH_ASSIMP)
40

Sylvain Thery's avatar
Sylvain Thery committed
41
IF (WITH_NUMERICAL)
42
	add_subdirectory(Numerical Numerical/build)
Sylvain Thery's avatar
Sylvain Thery committed
43
ENDIF (WITH_NUMERICAL)
44