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
|
|
|
|
#
|
|
|
|
|
2022-08-01 05:45:18 +08:00
|
|
|
cmake_minimum_required(VERSION 3.8.0)
|
2008-05-02 22:19:38 +08:00
|
|
|
|
|
|
|
# create a variable called target_name and set it to the string "htmlify"
|
|
|
|
set (target_name htmlify)
|
|
|
|
|
2017-10-17 09:36:18 +08:00
|
|
|
project(${target_name})
|
2008-05-02 22:19:38 +08:00
|
|
|
|
2017-10-17 09:36:18 +08:00
|
|
|
add_subdirectory(../../dlib dlib_build)
|
2017-03-10 09:14:42 +08:00
|
|
|
|
2008-05-02 22:19:38 +08:00
|
|
|
# add all the cpp files we want to compile to this list. This tells
|
2011-06-20 06:37:23 +08:00
|
|
|
# cmake that they are part of our target (which is the executable named htmlify)
|
2017-10-17 09:36:18 +08:00
|
|
|
add_executable(${target_name}
|
2013-02-11 02:58:22 +08:00
|
|
|
htmlify.cpp
|
|
|
|
to_xml.cpp
|
|
|
|
)
|
2008-05-02 22:19:38 +08:00
|
|
|
|
2013-02-11 02:58:22 +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 )
|
2008-05-02 22:19:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-17 09:36:18 +08:00
|
|
|
install(TARGETS ${target_name}
|
2008-05-02 22:19:38 +08:00
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
2010-07-26 00:03:38 +08:00
|
|
|
|
|
|
|
|