diff options
author | Jaywalker <jwilliams@nsllc.com> | 2018-02-06 17:47:38 -0600 |
---|---|---|
committer | Jaywalker <jwilliams@nsllc.com> | 2018-02-06 17:47:38 -0600 |
commit | 8d211461abde461bb193c0eb8fd768d748d737f0 (patch) | |
tree | 8c0dd21469e63ff9c4f847c0897f4be4ac1663db /CMakeLists.txt | |
parent | fb97f9603ada7961f30b123962a11981aee475a3 (diff) |
Build system changes
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d97ff0111..1ff18eb83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,12 +13,15 @@ enable_testing() option(WITH_DOC "Build documentation." ON) option(USE_NLS "Localisation support." ON) +INCLUDE_DIRECTORIES(/usr/src/skel/usr/include) +LINK_DIRECTORIES(/usr/src/skel/usr/lib) + set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake") # Add coverage target set(CMAKE_CXX_FLAGS_COVERAGE "-g -fprofile-arcs -ftest-coverage") -set(CMAKE_EXE_LINKER_FLAGS_COVERAGE "-lgcov") -set(CMAKE_SHARED_LINKER_FLAGS_COVERAGE "-lgcov") +set(CMAKE_EXE_LINKER_FLAGS_COVERAGE "-lgcov -lSystem") +set(CMAKE_SHARED_LINKER_FLAGS_COVERAGE "-lgcov -lSystem") # Work around bug in GNUInstallDirs if (EXISTS "/etc/debian_version") @@ -203,7 +206,9 @@ add_subdirectory(apt-private) add_subdirectory(apt-inst) add_subdirectory(cmdline) add_subdirectory(completions) +if (WITH_DOC) add_subdirectory(doc) +endif() add_subdirectory(dselect) add_subdirectory(ftparchive) add_subdirectory(methods) |