blob: dfa0ad2db033a8ad0aa304cb6b0625334b99bcf3 [file] [log] [blame]
AppaRao Pulic532f552019-07-05 15:23:50 +05301cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
2project(pfr CXX)
Patrick Williams70da5ce2022-09-01 15:09:19 -05003set(CMAKE_CXX_STANDARD 20)
AppaRao Pulic532f552019-07-05 15:23:50 +05304set(CMAKE_CXX_STANDARD_REQUIRED ON)
5
6include(ExternalProject)
7include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)
8
9add_library(${PROJECT_NAME} SHARED src/pfr.cpp)
10
11set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "0.1.0")
12set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "0")
13target_link_libraries(${PROJECT_NAME} phosphor_logging)
14
15install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})