add_library(rhiannon_lib two_way_engine.cpp ) target_compile_features(rhiannon_lib PUBLIC cxx_std_20) target_include_directories(rhiannon_lib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../../include ${CMAKE_SOURCE_DIR}/include ) if(spdlog_FOUND) target_link_libraries(rhiannon_lib PUBLIC spdlog::spdlog_header_only) endif() if(nlohmann_json_FOUND) target_link_libraries(rhiannon_lib PUBLIC nlohmann_json::nlohmann_json) endif() if(APPLE AND RHIANNON_WITH_METAL AND METAL_FRAMEWORK) target_link_libraries(rhiannon_lib PUBLIC ${METAL_FRAMEWORK} ${FOUNDATION_FRAMEWORK}) endif()