CMakeLists.txt 3.24 KB
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1
cmake_minimum_required(VERSION 2.8)
Pierre Kraemer's avatar
Pierre Kraemer committed
2
3
4

project(Tutos)

Sylvain Thery's avatar
Sylvain Thery committed
5

Sylvain Thery's avatar
Sylvain Thery committed
6
7
#SET (CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
Pierre Kraemer's avatar
Pierre Kraemer committed
8

Sylvain Thery's avatar
Sylvain Thery committed
9
10


Sylvain Thery's avatar
Sylvain Thery committed
11
12
13
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#	${CGoGN_ROOT_DIR}/include
#	${CGoGN_EXT_INCLUDES})
Pierre Kraemer's avatar
Pierre Kraemer committed
14
15

# define libs path
Sylvain Thery's avatar
Sylvain Thery committed
16
17
18
19
20
21
#IF(WIN32)
#	link_directories(${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
#	${Boost_LIBRARY_DIRS})
#ELSE(WIN32)
#	link_directories(${CGoGN_ROOT_DIR}/lib/Release ${CGoGN_ROOT_DIR}/lib/Debug)
#ENDIF(WIN32)
thery's avatar
thery committed
22

Sylvain Thery's avatar
Sylvain Thery committed
23
24
25
26
27
add_subdirectory(Boundary)
add_subdirectory(Modelling)
add_subdirectory(Markers)
add_subdirectory(Traversals)
add_subdirectory(Attributes)
thery's avatar
thery committed
28

Pierre Kraemer's avatar
Pierre Kraemer committed
29
#define exec to compile
Sylvain Thery's avatar
Sylvain Thery committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
IF (WITH_QT)

	QT4_WRAP_CPP(tuto1_moc tuto1.h)
	add_executable( tuto1 tuto1.cpp ${tuto1_moc})
	target_link_libraries( tuto1
		${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )

	QT4_WRAP_UI( tuto2_ui tuto2.ui )
	QT4_WRAP_CPP(tuto2_moc tuto2.h)
	add_executable( tuto2 tuto2.cpp tuto2.h ${tuto2_ui}  ${tuto2_moc})
	target_link_libraries( tuto2
		${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )

	QT4_WRAP_CPP(tuto3_moc tuto3.h)
	add_executable( tuto3 tuto3.cpp ${tuto3_moc})
	target_link_libraries( tuto3
		${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )

	QT4_WRAP_UI( tuto4_ui tuto4.ui )
	QT4_WRAP_CPP(tuto4_moc tuto4.h)
	add_executable( tuto4 tuto4.cpp ${tuto4_ui} ${tuto4_moc})
	target_link_libraries( tuto4
		${CGoGN_LIBS}  ${CGoGN_EXT_LIBS}  )

	QT4_WRAP_UI( tuto5_ui tuto5.ui )
	QT4_WRAP_CPP(tuto5_moc tuto5.h)
	add_executable( tuto5 tuto5.cpp ${tuto5_ui} ${tuto5_moc})
	target_link_libraries( tuto5
		${CGoGN_LIBS}  ${CGoGN_EXT_LIBS}  )
Sylvain Thery's avatar
Sylvain Thery committed
59
	
Sylvain Thery's avatar
Sylvain Thery committed
60
61
62
63
64
	QT4_WRAP_UI( tuto_orbits_ui tuto_orbits.ui )
	QT4_WRAP_CPP(tuto_orbits_moc tuto_orbits.h)
	add_executable( tuto_orbits tuto_orbits.cpp ${tuto_orbits_ui} ${tuto_orbits_moc})
	target_link_libraries( tuto_orbits
		${CGoGN_LIBS}  ${CGoGN_EXT_LIBS}  )
Sylvain Thery's avatar
Sylvain Thery committed
65

Sylvain Thery's avatar
Sylvain Thery committed
66
67
68
69
70
71
	QT4_WRAP_CPP(tuto_histo_moc tuto_histo.h)
	add_executable( tuto_histo tuto_histo.cpp tuto_histo.h ${tuto_histo_ui}  ${tuto_histo_moc})
	target_link_libraries( tuto_histo
		${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )

ENDIF()
72

73
74
75
76
#QT4_WRAP_UI( show_traversors_ui show_traversors.ui )
#QT4_WRAP_CPP(show_traversors_moc show_traversors.h)
#add_executable( show_traversors show_traversors.cpp ${show_traversors_ui} ${show_traversors_moc})
#target_link_libraries( show_traversors
Sylvain Thery's avatar
Sylvain Thery committed
77
#	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS}  )
untereiner's avatar
untereiner committed
78

79
80
add_executable( tuto_subdivision tuto_subdivision.cpp)
target_link_libraries( tuto_subdivision
Sylvain Thery's avatar
Sylvain Thery committed
81
	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
untereiner's avatar
untereiner committed
82
83
84
	
add_executable( tuto_dual2 tuto_dual2.cpp)
target_link_libraries( tuto_dual2
Sylvain Thery's avatar
Sylvain Thery committed
85
	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
untereiner's avatar
untereiner committed
86
87
88
	
add_executable( tuto_dual3 tuto_dual3.cpp)
target_link_libraries( tuto_dual3
Sylvain Thery's avatar
Sylvain Thery committed
89
	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS} )
Pierre Kraemer's avatar
Pierre Kraemer committed
90

Sylvain Thery's avatar
Sylvain Thery committed
91
92
93
#QT4_WRAP_CPP(tp_master_moc tp_master.h)
#add_executable( tp_master tp_master.cpp ${tp_master_moc})
#target_link_libraries( tp_master
Sylvain Thery's avatar
Sylvain Thery committed
94
95
#	${CGoGN_LIBS}  ${CGoGN_EXT_LIBS}  )

Sylvain Thery's avatar
Sylvain Thery committed
96

97
98


99
100
101
#BOOST_LIBS macro: allow using compiled boost in windows (see readme)
# -first argument variable that will contain the libs
# -second argument list of boost libs separated by ; in " "
102
# exemple: BOOST_LIBS(boost_lib_lists "boost_thread-mt;boost_iostreams-mt")
Sylvain Thery's avatar
Sylvain Thery committed
103
104
#BOOST_LIBS(boost_lib_lists "boost_thread-mt")

105
106
107
#QT4_WRAP_CPP(tuto_mt_moc tuto_mt.h)
#add_executable( tuto_mt tuto_mt.cpp  ${tuto_mt_moc})
#target_link_libraries( tuto_mt
Sylvain Thery's avatar
Sylvain Thery committed
108
#	${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ${Boost_THREAD_LIBRARY})
Sylvain Thery's avatar
Sylvain Thery committed
109