Debian Codegraph @

src/OVAL/CMakeLists.txt

raw
1 add_subdirectory("results")
2 add_subdirectory("adt")
3 add_subdirectory("probes")
4 file(GLOB_RECURSE PUBLIC_HEADERS "public/*.h")
5
6 set (OVAL_SOURCES
7 "collectVarRefs.c"
8 "collectVarRefs_impl.h"
9 "oval_agent.c"
10 "oval_session.c"
11 "oval_defModel.c"
12 "oval_sysModel.c"
13 "oval_affected.c"
14 "oval_agent_api_impl.h"
15 "oval_behavior.c"
16 "oval_component.c"
17 "oval_criteriaNode.c"
18 "oval_definition.c"
19 "oval_definitions_impl.h"
20 "oval_entity.c"
21 "oval_enumerations.c"
22 "oval_filter.c"
23 "oval_generator.c"
24 "oval_glob_to_regex.c"
25 "oval_glob_to_regex.h"
26 "oval_message.c"
27 "oval_object.c"
28 "oval_objectContent.c"
29 "oval_parser.c"
30 "oval_parser_impl.h"
31 "oval_recordField.c"
32 "oval_reference.c"
33 "oval_directives.c"
34 "oval_directives_impl.h"
35 "oval_schema_version.c"
36 "oval_set.c"
37 "oval_state.c"
38 "oval_stateContent.c"
39 "oval_sysEnt.c"
40 "oval_sysInfo.c"
41 "oval_sysInterface.c"
42 "oval_sysItem.c"
43 "oval_syschar.c"
44 "oval_syscharIterator.c"
45 "oval_system_characteristics_impl.h"
46 "oval_test.c"
47 "oval_value.c"
48 "oval_variable.c"
49 "oval_variableBinding.c"
50 "oval_sys_parser.c"
51 "oval_varModel.c"
52 "oval_vardefMapping.c"
53 )
54
55 if (ENABLE_PROBES)
56 list(APPEND OVAL_SOURCES
57 "oval_probe.c"
58 "oval_probe_hint.c"
59 "oval_probe_session.c"
60 "_oval_probe_session.h"
61 "oval_probe_handler.c"
62 "_oval_probe_handler.h"
63 "probes/probe-api.c"
64 "probes/_probe-api.h"
65 "probes/probe-table.c"
66 "oval_sexp.c"
67 "oval_sexp.h"
68 "oval_probe_ext.h"
69 "oval_probe_impl.h"
70 )
71 if (UNIX)
72 list(APPEND OVAL_SOURCES
73 "fts_sun.c"
74 "fts_sun.h"
75 "probes/fsdev.c"
76 "probes/oval_fts.c"
77 "probes/oval_fts.h"
78 )
79 endif()
80
81 list(APPEND OVAL_SOURCES
82 "oval_probe_ext.c"
83 )
84 endif()
85
86 include_directories(
87 "probes"
88 "probes/public"
89 )
90
91 add_library(oval_object OBJECT ${OVAL_SOURCES})
92 set_oscap_generic_properties(oval_object)
93
94 install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/openscap)