2008-05-02 22:19:38 +08:00
|
|
|
#
|
|
|
|
# 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)
|
2008-07-13 04:45:15 +08:00
|
|
|
cmake_minimum_required(VERSION 2.4)
|
2008-10-31 11:58:36 +08:00
|
|
|
if(COMMAND cmake_policy)
|
|
|
|
cmake_policy(SET CMP0003 NEW)
|
|
|
|
endif()
|
2008-05-02 22:19:38 +08:00
|
|
|
|
2010-07-26 00:04:37 +08:00
|
|
|
|
|
|
|
#set default build type to Release
|
2011-06-20 06:12:46 +08:00
|
|
|
include(../dlib/release_build_by_default)
|
2010-07-26 00:04:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2008-05-02 22:19:38 +08:00
|
|
|
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
|
2011-12-12 06:15:18 +08:00
|
|
|
add_example(assignment_learning_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(bayes_net_ex)
|
|
|
|
add_example(bayes_net_from_disk_ex)
|
2008-05-31 07:24:11 +08:00
|
|
|
add_example(bayes_net_gui_ex)
|
2011-05-15 02:09:06 +08:00
|
|
|
add_example(bridge_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(compress_stream_ex)
|
2009-05-31 02:01:38 +08:00
|
|
|
add_example(config_reader_ex)
|
2010-12-31 12:53:44 +08:00
|
|
|
add_example(custom_trainer_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(dir_nav_ex)
|
2010-01-04 10:42:59 +08:00
|
|
|
add_example(empirical_kernel_map_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(file_to_code_ex)
|
|
|
|
add_example(gui_api_ex)
|
|
|
|
add_example(image_ex)
|
2008-05-23 08:26:28 +08:00
|
|
|
add_example(kcentroid_ex)
|
2008-05-31 07:24:11 +08:00
|
|
|
add_example(kkmeans_ex)
|
2008-05-23 08:08:49 +08:00
|
|
|
add_example(krls_ex)
|
2008-06-14 21:32:12 +08:00
|
|
|
add_example(krls_filter_ex)
|
2010-07-24 08:38:22 +08:00
|
|
|
add_example(krr_classification_ex)
|
|
|
|
add_example(krr_regression_ex)
|
2010-12-05 03:37:58 +08:00
|
|
|
add_example(least_squares_ex)
|
2010-05-13 10:46:17 +08:00
|
|
|
add_example(linear_manifold_regularizer_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(logger_ex)
|
|
|
|
add_example(logger_ex_2)
|
|
|
|
add_example(matrix_ex)
|
2010-07-19 03:57:34 +08:00
|
|
|
add_example(matrix_expressions_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(member_function_pointer_ex)
|
|
|
|
add_example(mlp_ex)
|
2009-10-17 03:16:52 +08:00
|
|
|
add_example(model_selection_ex)
|
2010-12-31 02:59:13 +08:00
|
|
|
add_example(multiclass_classification_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(multithreaded_object_ex)
|
2011-09-18 04:23:06 +08:00
|
|
|
add_example(object_detector_advanced_ex)
|
|
|
|
add_example(object_detector_ex)
|
2009-01-23 10:38:20 +08:00
|
|
|
add_example(optimization_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(pipe_ex)
|
2009-01-16 12:13:43 +08:00
|
|
|
add_example(pipe_ex_2)
|
2008-12-25 08:32:29 +08:00
|
|
|
add_example(quantum_computing_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(queue_ex)
|
2008-07-06 00:26:22 +08:00
|
|
|
add_example(rank_features_ex)
|
2008-09-14 21:47:26 +08:00
|
|
|
add_example(rvm_ex)
|
2008-09-14 23:38:45 +08:00
|
|
|
add_example(rvm_regression_ex)
|
2011-11-03 10:40:18 +08:00
|
|
|
add_example(sequence_labeler_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(server_http_ex)
|
|
|
|
add_example(sockets_ex)
|
|
|
|
add_example(sockets_ex_2)
|
|
|
|
add_example(sockstreambuf_ex)
|
|
|
|
add_example(std_allocator_ex)
|
2009-05-25 08:47:32 +08:00
|
|
|
add_example(surf_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(svm_ex)
|
2009-03-09 01:38:04 +08:00
|
|
|
add_example(svm_pegasos_ex)
|
2009-03-23 05:31:27 +08:00
|
|
|
add_example(svm_sparse_ex)
|
2010-12-31 22:17:51 +08:00
|
|
|
add_example(svr_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(threaded_object_ex)
|
|
|
|
add_example(thread_function_ex)
|
2008-11-06 12:13:03 +08:00
|
|
|
add_example(thread_pool_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(threads_ex)
|
|
|
|
add_example(timer_ex)
|
2012-03-22 09:09:01 +08:00
|
|
|
add_example(train_object_detector)
|
2011-06-04 10:15:14 +08:00
|
|
|
add_example(using_custom_kernels_ex)
|
2008-05-02 22:19:38 +08:00
|
|
|
add_example(xml_parser_ex)
|