AppaRao Puli | c532f55 | 2019-07-05 15:23:50 +0530 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR) |
| 2 | project(pfr CXX) |
Patrick Williams | 70da5ce | 2022-09-01 15:09:19 -0500 | [diff] [blame] | 3 | set(CMAKE_CXX_STANDARD 20) |
AppaRao Puli | c532f55 | 2019-07-05 15:23:50 +0530 | [diff] [blame] | 4 | set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 5 | |
| 6 | include(ExternalProject) |
| 7 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc) |
| 8 | |
| 9 | add_library(${PROJECT_NAME} SHARED src/pfr.cpp) |
| 10 | |
| 11 | set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "0.1.0") |
| 12 | set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "0") |
| 13 | target_link_libraries(${PROJECT_NAME} phosphor_logging) |
| 14 | |
| 15 | install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}) |