2011-01-14 06:32:43 +08:00
|
|
|
#
|
|
|
|
# This is a CMake makefile. You can find the cmake utility and
|
|
|
|
# information about it at http://www.cmake.org
|
|
|
|
#
|
|
|
|
|
2014-12-06 21:38:04 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8.4)
|
2011-01-14 06:32:43 +08:00
|
|
|
|
|
|
|
# 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
|
2013-02-11 02:58:22 +08:00
|
|
|
# cmake that they are part of our target (which is the executable named mltool)
|
2011-01-14 06:32:43 +08:00
|
|
|
ADD_EXECUTABLE(${target_name}
|
|
|
|
src/main.cpp
|
2011-01-14 07:09:51 +08:00
|
|
|
src/regression.cpp
|
|
|
|
src/regression.h
|
|
|
|
src/common.h
|
|
|
|
src/option_range.h
|
|
|
|
src/option_range.cpp
|
2011-01-14 06:32:43 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-11 02:58:22 +08:00
|
|
|
# Tell cmake to link our target executable to dlib.
|
|
|
|
include(../../dlib/cmake)
|
2011-01-14 06:32:43 +08:00
|
|
|
TARGET_LINK_LIBRARIES(${target_name} dlib )
|
|
|
|
|
|
|
|
|
|
|
|
INSTALL(TARGETS ${target_name}
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
|