CMakeLists.txt 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
#
# This is a CMake makefile.  You can find the cmake utility and
# information about it at http://www.cmake.org
#


# setting this makes CMake allow normal looking IF ELSE statements
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
9
cmake_minimum_required(VERSION 2.4)
10
11
12
if(COMMAND cmake_policy) 
   cmake_policy(SET CMP0003 NEW) 
endif()
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

PROJECT(examples)

# add the folder containing the dlib folder to the include path
INCLUDE_DIRECTORIES(..)


# There is a CMakeLists.txt file in the dlib source folder that tells cmake
# how to build the dlib library.  Tell cmake about that file.
add_subdirectory(../dlib dlib_build)


MACRO(add_example name)
   ADD_EXECUTABLE(${name} ${name}.cpp)
   TARGET_LINK_LIBRARIES(${name} dlib )
ENDMACRO()


#here we apply our macros 
add_example(bayes_net_ex)
add_example(bayes_net_from_disk_ex)
34
add_example(bayes_net_gui_ex)
35
add_example(compress_stream_ex)
36
add_example(config_reader_ex)
37
add_example(dir_nav_ex)
38
add_example(empirical_kernel_map_ex)
39
40
41
add_example(file_to_code_ex)
add_example(gui_api_ex)
add_example(image_ex)
Davis King's avatar
Davis King committed
42
add_example(kcentroid_ex)
43
add_example(kkmeans_ex)
Davis King's avatar
Davis King committed
44
add_example(krls_ex)
45
add_example(krls_filter_ex)
46
add_example(linear_manifold_regularizer_ex)
47
48
49
add_example(logger_ex)
add_example(logger_ex_2)
add_example(matrix_ex)
50
add_example(matrix_expressions_ex)
51
52
add_example(member_function_pointer_ex)
add_example(mlp_ex)
53
add_example(model_selection_ex)
54
add_example(multithreaded_object_ex)
Davis King's avatar
Davis King committed
55
add_example(optimization_ex)
56
add_example(pipe_ex)
57
add_example(pipe_ex_2)
Davis King's avatar
Davis King committed
58
add_example(quantum_computing_ex)
59
add_example(queue_ex)
Davis King's avatar
Davis King committed
60
add_example(rank_features_ex)
Davis King's avatar
Davis King committed
61
add_example(rvm_ex)
Davis King's avatar
Davis King committed
62
add_example(rvm_regression_ex)
63
64
65
66
67
add_example(server_http_ex)
add_example(sockets_ex)
add_example(sockets_ex_2)
add_example(sockstreambuf_ex)
add_example(std_allocator_ex)
68
add_example(surf_ex)
69
add_example(svm_ex)
70
add_example(svm_pegasos_ex)
Davis King's avatar
Davis King committed
71
add_example(svm_sparse_ex)
72
73
add_example(threaded_object_ex)
add_example(thread_function_ex)
Davis King's avatar
Davis King committed
74
add_example(thread_pool_ex)
75
76
77
78
add_example(threads_ex)
add_example(timer_ex)
add_example(xml_parser_ex)