Debian Codegraph @

src/SCE/CMakeLists.txt

raw
1 file(GLOB_RECURSE SCE_SOURCES "*.c")
2 file(GLOB_RECURSE SCE_PUBLIC_HEADERS "public/*.h")
3
4 add_library(openscap_sce SHARED
5 ${SCE_SOURCES}
6 "${CMAKE_SOURCE_DIR}/src/common/error.c"
7 "${CMAKE_SOURCE_DIR}/src/common/err_queue.c"
8 "${CMAKE_SOURCE_DIR}/src/common/list.c"
9 "${CMAKE_SOURCE_DIR}/src/common/oscap_string.c"
10 "${CMAKE_SOURCE_DIR}/src/common/oscap_buffer.c"
11 "${CMAKE_SOURCE_DIR}/src/common/util.c"
12 )
13 target_include_directories(openscap_sce PUBLIC public)
14 set_target_properties(openscap_sce PROPERTIES VERSION ${SONAME} SOVERSION ${SOVERSION})
15 target_link_libraries(openscap_sce openscap)
16
17 install(TARGETS openscap_sce
18 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
19 install(FILES ${SCE_PUBLIC_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/openscap")