Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
CMake: use the package config file provided by the core
Browse files Browse the repository at this point in the history
It defines a ParameterFramework::plugin imported library.

Signed-off-by: David Wagner <[email protected]>
  • Loading branch information
dawagner committed Mar 30, 2016
1 parent 6de63ee commit a1b86db
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2014-2015, Intel Corporation
# Copyright (c) 2014-2016, Intel Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
Expand Down Expand Up @@ -36,22 +36,13 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror -Wall -Wextra")
#
# Find PFW libraries and include directories
#
find_path(PFW_INCLUDE_ROOT NAMES parameter/plugin/Plugin.h)

find_library(PFW_CORE_LIBRARY NAMES parameter)

set(PFW_INCLUDE_DIRS
${PFW_INCLUDE_ROOT}/parameter/plugin
${PFW_INCLUDE_ROOT}/xmlserializer
${PFW_INCLUDE_ROOT}/utility)
find_package(ParameterFramework 3 REQUIRED)

add_library(fs-subsystem SHARED
FSSubsystemBuilder.cpp
FSSubsystem.cpp
FSSubsystemObject.cpp)

target_link_libraries(fs-subsystem ${PFW_CORE_LIBRARY})

include_directories(${PFW_INCLUDE_DIRS})
target_link_libraries(fs-subsystem ParameterFramework::plugin)

install(TARGETS fs-subsystem LIBRARY DESTINATION lib)

0 comments on commit a1b86db

Please sign in to comment.