CMakeLists.txt 843 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 12 13 14 15 16 17
SET ( BUILD_SHARED_LIBRARIES OFF CACHE BOOL
	"if used all library are build as shared type (.so /dylib/dll)."
)

IF ( BUILD_SHARED_LIBRARIES )
	SET (SHARED_OR_STATIC SHARED)
ENDIF ( BUILD_SHARED_LIBRARIES )


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

Pierre Kraemer's avatar
Pierre Kraemer committed
22
IF(WIN32)
sylvain thery's avatar
sylvain thery committed
23 24
	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
25
ELSE(WIN32)
sylvain thery's avatar
sylvain thery committed
26
	SET(LIBRARY_OUTPUT_PATH ${CGoGN_ROOT_DIR}/lib/Release)
Pierre Kraemer's avatar
Pierre Kraemer committed
27 28
ENDIF(WIN32)

29 30 31 32 33 34 35 36
add_subdirectory(Zinri Zinri/build)
add_subdirectory(gzstream gzstream/build)
add_subdirectory(Numerical Numerical/build)
add_subdirectory(Tools Tools/build)

add_subdirectory(Assimp Assimp/build)