CMakeLists.txt 1.12 KB
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)
Sylvain Thery's avatar
Sylvain Thery committed
10
	link_directories( ${CGoGN_ROOT_DIR}/windows_dependencies/lib/)
11 12 13 14 15 16 17
	IF((CGoGN_WITH_QTCREATOR))
		link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE})
		SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE}) # Release/Debug added automatically by visual
	ELSE()
		link_directories( ${CGoGN_ROOT_DIR}/lib/${ConfigurationName})
		SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/) # Release/Debug added automatically by visual
	ENDIF()
Sylvain Thery's avatar
Sylvain Thery committed
18 19 20 21
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
22

23 24 25
#include_directories(
#	${CGoGN_ROOT_DIR}/include
#	${CGoGN_EXT_INCLUDES})
Sylvain Thery's avatar
Sylvain Thery committed
26

27
IF (CGoGN_COMPILE_SANDBOX)
Sylvain Thery's avatar
Sylvain Thery committed
28 29 30
	add_subdirectory(SandBox)
ENDIF()

31 32
IF (CGoGN_COMPILE_EXAMPLES AND CGoGN_WITH_QT)
	add_subdirectory(Examples)
Sylvain Thery's avatar
Sylvain Thery committed
33 34
ENDIF()

35
IF (CGoGN_COMPILE_TUTOS)
36
	add_subdirectory(Tuto)
Sylvain Thery's avatar
Sylvain Thery committed
37 38
ENDIF()

39
IF (CGoGN_COMPILE_BENCHES)
Sylvain Thery's avatar
Sylvain Thery committed
40 41 42
	add_subdirectory(Benches)
ENDIF()

43
IF (CGoGN_COMPILE_TESTS)
Sylvain Thery's avatar
Sylvain Thery committed
44 45 46
	add_subdirectory(Tests)
ENDIF()