Made the unit tests compile all/source.cpp.

This commit is contained in:
Davis King 2016-08-16 18:14:53 -04:00
parent 4c1e0efb04
commit b3e9f7afc9
2 changed files with 14 additions and 0 deletions

View File

@ -177,6 +177,7 @@ TARGET_LINK_LIBRARIES(${target_name} dlib )
if (NOT DLIB_NO_GUI_SUPPORT)
add_subdirectory(gui)
add_subdirectory(examples)
add_subdirectory(all_source)
endif()

View File

@ -0,0 +1,13 @@
#
# This is a CMake makefile. You can find the cmake utility and
# information about it at http://www.cmake.org
#
cmake_minimum_required(VERSION 2.8.4)
set (target_name test_all_source_builds)
PROJECT(${target_name})
include(../../cmake_utils/use_cpp_11.cmake)
ADD_LIBRARY(${target_name} STATIC ../../all/source.cpp)