CMakeLists.txt 923 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
	link_directories( ${CGoGN_ROOT_DIR}/windows_dependencies/lib/)
Sylvain Thery's avatar
Sylvain Thery committed
12 13 14 15 16
	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
17

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

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

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

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

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

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