2022-09-29 15:45:52 +02:00
|
|
|
# Copyright (c) 2021-2022 Barcelona Supercomputing Center (BSC)
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-12-16 11:56:43 +01:00
|
|
|
add_subdirectory(include)
|
2022-09-29 15:45:52 +02:00
|
|
|
|
2022-12-16 11:56:43 +01: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)
|
|
|
|
|
2023-02-02 14:00:50 +01:00
|
|
|
add_library(common STATIC common.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
|
|
|
|
2023-02-02 14:00:50 +01:00
|
|
|
add_library(common-static STATIC common.c)
|
|
|
|
target_include_directories(common-static PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
2022-11-09 14:34:40 +01:00
|
|
|
configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" )
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2022-12-16 11:56:43 +01:00
|
|
|
add_subdirectory(rt)
|
|
|
|
add_subdirectory(emu)
|