AppaRao Puli | c532f55 | 2019-07-05 15:23:50 +0530 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR) |
Alex Schendel | 57f42c3 | 2021-12-08 14:39:27 -0800 | [diff] [blame] | 2 | set(CMAKE_CXX_STANDARD 20) |
AppaRao Puli | c532f55 | 2019-07-05 15:23:50 +0530 | [diff] [blame] | 3 | set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 4 | |
| 5 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libpfr/inc) |
AppaRao Puli | e63eeda | 2019-07-05 16:25:38 +0530 | [diff] [blame] | 6 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/service/inc) |
AppaRao Puli | c532f55 | 2019-07-05 15:23:50 +0530 | [diff] [blame] | 7 | |
| 8 | add_subdirectory(libpfr) |
AppaRao Puli | e63eeda | 2019-07-05 16:25:38 +0530 | [diff] [blame] | 9 | add_subdirectory(service) |
| 10 | |
Jason M. Bills | 48935a4 | 2023-06-28 12:04:56 -0700 | [diff] [blame] | 11 | pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir) |
| 12 | |
AppaRao Puli | cc1ed68 | 2019-10-01 12:29:40 +0530 | [diff] [blame] | 13 | set(SERVICE_FILES ${PROJECT_SOURCE_DIR}/xyz.openbmc_project.PFR.Manager.service) |
Jason M. Bills | 48935a4 | 2023-06-28 12:04:56 -0700 | [diff] [blame] | 14 | install(FILES ${SERVICE_FILES} DESTINATION "${SYSTEMD_SYSTEM_UNIT_DIR}") |