CMakeLists.txt 1.14 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1

Sylvain Thery's avatar
Sylvain Thery committed
2 3
project(Apps)

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

Sylvain Thery's avatar
Sylvain Thery committed
10

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

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

29
IF (CGoGN_COMPILE_SANDBOX)
Sylvain Thery's avatar
Sylvain Thery committed
30 31 32
	add_subdirectory(SandBox)
ENDIF()

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

37
IF (CGoGN_COMPILE_TUTOS)
38
	add_subdirectory(Tuto)
Sylvain Thery's avatar
Sylvain Thery committed
39 40
ENDIF()

41
IF (CGoGN_COMPILE_BENCHES)
Sylvain Thery's avatar
Sylvain Thery committed
42 43 44
	add_subdirectory(Benches)
ENDIF()

45
IF (CGoGN_COMPILE_TESTS)
Sylvain Thery's avatar
Sylvain Thery committed
46 47 48
	add_subdirectory(Tests)
ENDIF()