dlib/tools/mltool/CMakeLists.txt
Davis King f2ec45946e Added the first version of a command line tool for using the machine learning
algorithms in dlib.  This first version was created by Gregory Sharp.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404106
2011-01-13 22:32:43 +00:00

47 lines
1.2 KiB
CMake

#
# This is a CMake makefile. You can find the cmake utility and
# information about it at http://www.cmake.org
#
#SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
cmake_minimum_required(VERSION 2.6)
# create a variable called target_name and set it to the string "mltool"
set (target_name mltool)
PROJECT(${target_name})
# 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 exectuable named mltool)
ADD_EXECUTABLE(${target_name}
src/main.cpp
)
# 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)
# Tell cmake to link our target executable to the non-gui version of the dlib
# library.
TARGET_LINK_LIBRARIES(${target_name} dlib )
INSTALL(TARGETS ${target_name}
RUNTIME DESTINATION bin
)
#set default build type to Release
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel." FORCE)
endif()