diff --git a/tools/imglab/CMakeLists.txt b/tools/imglab/CMakeLists.txt index f41fa1a2f..43722aaf0 100644 --- a/tools/imglab/CMakeLists.txt +++ b/tools/imglab/CMakeLists.txt @@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 2.8.4) set (target_name imglab) PROJECT(${target_name}) +include(../../dlib/cmake) # 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) @@ -29,7 +30,6 @@ ADD_EXECUTABLE(${target_name} # Tell cmake to link our target executable to dlib. -include(../../dlib/cmake) TARGET_LINK_LIBRARIES(${target_name} dlib )