blob: 8957c9f66d31396feb2e2e66b5b67a41614ef40b [file] [log] [blame]
AppaRao Pulic532f552019-07-05 15:23:50 +05301cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
2project(pfr CXX)
3set(CMAKE_CXX_STANDARD 17)
4set(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})