CMakeLists.txt 1.25 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)
5
	SET(CGoGN_LIBS cgogn)
6 7 8
ELSE ()
	SET(CGoGN_LIBS algo) # topology container utils include by dependencies
ENDIF ()
9

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()
Sylvain Thery's avatar
Sylvain Thery committed
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
ELSE()
	link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} )
22 23 24 25 26
	IF(APPLE)
		SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE}/Contents/MacOS/ )
	ELSE()
		SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE} )
	ENDIF()
Sylvain Thery's avatar
Sylvain Thery committed
27
ENDIF()
28

29 30 31
#include_directories(
#	${CGoGN_ROOT_DIR}/include
#	${CGoGN_EXT_INCLUDES})
32

33
IF (CGoGN_COMPILE_SANDBOX)
34 35 36
	add_subdirectory(SandBox)
ENDIF()

37 38
IF (CGoGN_COMPILE_EXAMPLES AND CGoGN_WITH_QT)
	add_subdirectory(Examples)
39 40
ENDIF()

41
IF (CGoGN_COMPILE_TUTOS)
42
	add_subdirectory(Tuto)
43 44
ENDIF()

45
IF (CGoGN_COMPILE_BENCHES)
46 47 48
	add_subdirectory(Benches)
ENDIF()

49
IF (CGoGN_COMPILE_TESTS)
50 51 52
	add_subdirectory(Tests)
ENDIF()