ovni/src/CMakeLists.txt

29 lines
1.1 KiB
CMake
Raw Normal View History

# Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
2022-09-29 15:45:52 +02:00
# SPDX-License-Identifier: GPL-3.0-or-later
add_subdirectory(include)
2022-09-29 15:45:52 +02:00
add_library(parson STATIC parson.c)
target_include_directories(parson PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
2022-12-19 14:05:44 +01:00
set_property(TARGET parson PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(common STATIC common.c compat.c)
target_include_directories(common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
set_property(TARGET common PROPERTY POSITION_INDEPENDENT_CODE ON)
2022-12-19 14:05:44 +01:00
add_library(parson-static STATIC parson.c)
target_include_directories(parson-static PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
2022-09-29 15:45:52 +02:00
add_library(common-static STATIC common.c compat.c)
target_include_directories(common-static PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
2023-07-05 13:13:53 +02:00
configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h")
include_directories(${CMAKE_CURRENT_BINARY_DIR})
2023-07-05 13:13:53 +02:00
configure_file("ovni.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/ovni.pc" @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ovni.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
add_subdirectory(rt)
add_subdirectory(emu)