2011-06-19 01:49:42 +08:00
|
|
|
#
|
|
|
|
# This is a CMake makefile. You can find the cmake utility and
|
|
|
|
# information about it at http://www.cmake.org
|
|
|
|
#
|
|
|
|
|
2017-02-28 01:23:28 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2011-06-19 01:49:42 +08:00
|
|
|
|
|
|
|
# create a variable called target_name and set it to the string "imglab"
|
|
|
|
set (target_name imglab)
|
|
|
|
|
|
|
|
PROJECT(${target_name})
|
2017-10-17 09:36:18 +08:00
|
|
|
add_subdirectory(../../dlib dlib_build)
|
2011-06-19 01:49:42 +08:00
|
|
|
|
|
|
|
# add all the cpp files we want to compile to this list. This tells
|
|
|
|
# cmake that they are part of our target (which is the executable named imglab)
|
2017-10-17 09:36:18 +08:00
|
|
|
add_executable(${target_name}
|
2011-06-19 01:49:42 +08:00
|
|
|
src/main.cpp
|
2011-06-19 22:49:23 +08:00
|
|
|
src/metadata_editor.h
|
|
|
|
src/metadata_editor.cpp
|
2011-07-09 03:47:38 +08:00
|
|
|
src/convert_pascal_xml.h
|
|
|
|
src/convert_pascal_xml.cpp
|
2011-07-09 03:43:07 +08:00
|
|
|
src/convert_pascal_v1.h
|
|
|
|
src/convert_pascal_v1.cpp
|
2011-07-09 05:21:24 +08:00
|
|
|
src/convert_idl.h
|
|
|
|
src/convert_idl.cpp
|
2011-07-09 01:38:38 +08:00
|
|
|
src/common.h
|
|
|
|
src/common.cpp
|
2015-07-03 23:58:59 +08:00
|
|
|
src/cluster.cpp
|
2011-06-19 01:49:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2014-02-23 11:00:07 +08:00
|
|
|
# Tell cmake to link our target executable to dlib.
|
2017-10-17 09:36:18 +08:00
|
|
|
target_link_libraries(${target_name} dlib::dlib )
|
2011-06-19 01:49:42 +08:00
|
|
|
|
|
|
|
|
2017-10-17 09:36:18 +08:00
|
|
|
install(TARGETS ${target_name}
|
2011-06-19 01:49:42 +08:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2017-10-17 09:36:18 +08:00
|
|
|
install(PROGRAMS convert_imglab_paths_to_relative copy_imglab_dataset DESTINATION bin )
|
2011-06-19 01:49:42 +08:00
|
|
|
|