blob: 913860b21b667c40b5cf596024f64fae4f519f0e [file] [log] [blame]
AppaRao Pulic532f552019-07-05 15:23:50 +05301cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
Alex Schendel57f42c32021-12-08 14:39:27 -08002set(CMAKE_CXX_STANDARD 20)
AppaRao Pulic532f552019-07-05 15:23:50 +05303set(CMAKE_CXX_STANDARD_REQUIRED ON)
4
5include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libpfr/inc)
AppaRao Pulie63eeda2019-07-05 16:25:38 +05306include_directories(${CMAKE_CURRENT_SOURCE_DIR}/service/inc)
AppaRao Pulic532f552019-07-05 15:23:50 +05307
8add_subdirectory(libpfr)
AppaRao Pulie63eeda2019-07-05 16:25:38 +05309add_subdirectory(service)
10
Jason M. Bills48935a42023-06-28 12:04:56 -070011pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)
12
AppaRao Pulicc1ed682019-10-01 12:29:40 +053013set(SERVICE_FILES ${PROJECT_SOURCE_DIR}/xyz.openbmc_project.PFR.Manager.service)
Jason M. Bills48935a42023-06-28 12:04:56 -070014install(FILES ${SERVICE_FILES} DESTINATION "${SYSTEMD_SYSTEM_UNIT_DIR}")