ovni/src/CMakeLists.txt

25 lines
913 B
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}")
configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(rt)
add_subdirectory(emu)