From b2e7b8b12046ae0205f16643a8a4cd16ac0bdfb5 Mon Sep 17 00:00:00 2001 From: Nicholas O'Connor Date: Thu, 23 Mar 2017 11:13:00 -0700 Subject: [PATCH] checks for tclap, assumes its in include if not --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9564c0a..09fcda9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,15 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(PythonInterp) find_package(Boost 1.63 REQUIRED COMPONENTS filesystem) +find_package(PkgConfig) +pkg_check_modules(TCLAP "tclap >= 1.2.1") +if(NOT TCLAP_FOUND) +MESSAGE(WARNING "TCLAP is required by this project, but was not found by CMake. +Continuing on the assumption that you've downloaded it from +http://tclap.sourceforge.net and put the headers in ./include +(wink, nudge)") +endif(NOT TCLAP_FOUND) + include_directories(include) set(src "${CMAKE_CURRENT_SOURCE_DIR}/src")