Add cmake option to enable microprofile

This commit is contained in:
PabloMK7 2025-03-09 19:37:43 +01:00 committed by OpenSauce
parent e3a21c8ef1
commit dd9c743041
7 changed files with 30 additions and 11 deletions

View file

@ -138,6 +138,11 @@ endif()
# MicroProfile
add_library(microprofile INTERFACE)
target_include_directories(microprofile SYSTEM INTERFACE ./microprofile)
if (ENABLE_MICROPROFILE)
target_compile_definitions(microprofile INTERFACE MICROPROFILE_ENABLED=1)
else()
target_compile_definitions(microprofile INTERFACE MICROPROFILE_ENABLED=0)
endif()
# Nihstro
add_library(nihstro-headers INTERFACE)