file(GLOB_RECURSE SCE_SOURCES "*.c") file(GLOB_RECURSE SCE_PUBLIC_HEADERS "public/*.h") add_library(openscap_sce SHARED ${SCE_SOURCES} "${CMAKE_SOURCE_DIR}/src/common/error.c" "${CMAKE_SOURCE_DIR}/src/common/err_queue.c" "${CMAKE_SOURCE_DIR}/src/common/list.c" "${CMAKE_SOURCE_DIR}/src/common/oscap_string.c" "${CMAKE_SOURCE_DIR}/src/common/oscap_buffer.c" "${CMAKE_SOURCE_DIR}/src/common/util.c" ) target_include_directories(openscap_sce PUBLIC public) set_target_properties(openscap_sce PROPERTIES VERSION ${SONAME} SOVERSION ${SOVERSION}) target_link_libraries(openscap_sce openscap) install(TARGETS openscap_sce LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${SCE_PUBLIC_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/openscap")