File: CMakeLists.txt

package info (click to toggle)
persistent-cache-cpp 1.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 648 kB
  • sloc: cpp: 7,754; python: 183; ansic: 91; sh: 34; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set(install_dir ${CMAKE_INSTALL_PREFIX}/share/doc/${LIBNAME}/examples)

set(examples
    string_cache
    person_cache
)

foreach(e ${examples})
    add_executable(${e} ${e}.cpp)
    target_link_libraries(${e} ${LIBNAME})
    if ("${cmake_build_type_lower}" STREQUAL "coverage")
        SET_PROPERTY(TARGET ${e} APPEND_STRING PROPERTY LINK_FLAGS " -g --coverage")
    endif()
    install(FILES ${e}.cpp
            DESTINATION ${install_dir})
    add_test(${e}_test ${e})
endforeach()