aboutsummaryrefslogtreecommitdiff
path: root/paludis/args/CMakeLists.txt
blob: 406621c7595c52f31bfb19c579a074a6bf8d83f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
paludis_add_library(libpaludisargs
                      "${CMAKE_CURRENT_SOURCE_DIR}/args.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_error.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_group.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_option.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_section.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/bad_argument.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_visitor.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_dumper.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/escape.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/log_level_arg.cc"
                      "${CMAKE_CURRENT_SOURCE_DIR}/man.cc"
                    SE_SOURCES
                      "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.se")
target_link_libraries(libpaludisargs
                      PRIVATE
                        libpaludisutil)

paludis_add_test(args_TEST GTEST
                 LINK_LIBRARIES
                   libpaludisargs)

install(TARGETS
          libpaludisargs
        DESTINATION
          "${CMAKE_INSTALL_FULL_LIBDIR}")
install(FILES
          "${CMAKE_CURRENT_SOURCE_DIR}/args_dumper.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_error.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_group.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_handler.hh"
          "${CMAKE_CURRENT_BINARY_DIR}/args_handler-se.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_option.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_section.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/args_visitor.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/bad_argument.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/do_help.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/escape.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/log_level_arg.hh"
          "${CMAKE_CURRENT_SOURCE_DIR}/man.hh"
        DESTINATION
          "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/args")