# Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC) # SPDX-License-Identifier: GPL-3.0-or-later include_directories("${CMAKE_SOURCE_DIR}/src/include") add_library(ovni SHARED ovni.c) target_link_libraries(ovni parson common) target_include_directories(ovni PUBLIC "${CMAKE_BINARY_DIR}/include") set_target_properties(ovni PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR} PUBLIC_HEADER "${CMAKE_BINARY_DIR}/include/ovni.h") add_library(ovni-static STATIC ovni.c) target_link_libraries(ovni-static parson-static common-static) target_include_directories(ovni-static PUBLIC "${CMAKE_BINARY_DIR}/include") install(TARGETS ovni)