CMakeLists.txt 979 Bytes
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

Sylvain Thery's avatar
Sylvain Thery committed
13 14
SET (WITH_ASSIMP ON CACHE BOOL "build CGoGN with Assimp")
SET (WITH_NUMERICAL ON CACHE BOOL "build CGoGN with numerical libs")
Sylvain Thery's avatar
Sylvain Thery committed
15 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 31
add_subdirectory(Zinri Zinri/build)
add_subdirectory(gzstream gzstream/build)
add_subdirectory(Tools Tools/build)

Sylvain Thery's avatar
Sylvain Thery committed
32 33 34
IF (WITH_ASSIMP)
	add_subdirectory(Numerical Numerical/build)
ENDIF (WITH_ASSIMP)
35

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