CMakeLists.txt 859 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1

2
IF (CGoGN_ONELIB)
Sylvain Thery's avatar
Sylvain Thery committed
3
	SET(CGoGN_LIBS cgogn)
4 5 6
ELSE ()
	SET(CGoGN_LIBS algo) # topology container utils include by dependencies
ENDIF ()
7

Sylvain Thery's avatar
Sylvain Thery committed
8

Sylvain Thery's avatar
Sylvain Thery committed
9
IF (WIN32)
10
	link_directories( ${CGoGN_ROOT_DIR}/lib/${ConfigurationName})
Sylvain Thery's avatar
Sylvain Thery committed
11 12 13 14 15
	SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/) # Release/Debug added automatically by visual
ELSE()
	link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} )
	SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE} )
ENDIF()
Sylvain Thery's avatar
Sylvain Thery committed
16

17 18 19
#include_directories(
#	${CGoGN_ROOT_DIR}/include
#	${CGoGN_EXT_INCLUDES})
Sylvain Thery's avatar
Sylvain Thery committed
20

21
IF (CGoGN_COMPILE_SANDBOX)
Sylvain Thery's avatar
Sylvain Thery committed
22 23 24
	add_subdirectory(SandBox)
ENDIF()

25 26
IF (CGoGN_COMPILE_EXAMPLES AND CGoGN_WITH_QT)
	add_subdirectory(Examples)
Sylvain Thery's avatar
Sylvain Thery committed
27 28
ENDIF()

29
IF (CGoGN_COMPILE_TUTOS)
30
	add_subdirectory(Tuto)
Sylvain Thery's avatar
Sylvain Thery committed
31 32
ENDIF()

33
IF (CGoGN_COMPILE_BENCHES)
Sylvain Thery's avatar
Sylvain Thery committed
34 35 36
	add_subdirectory(Benches)
ENDIF()

37
IF (CGoGN_COMPILE_TESTS)
Sylvain Thery's avatar
Sylvain Thery committed
38 39 40
	add_subdirectory(Tests)
ENDIF()