aboutsummaryrefslogtreecommitdiffstats
path: root/skeleton-subsystem/CMakeLists.txt
blob: 1ceb531f59c51fd1f9fcc27effbcc9daa8ff5a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# has been tested on 2.8 only - might work on older versions
cmake_minimum_required(VERSION 2.8)

project(parameter-framework-plugins-skeleton)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra")

#
# Find PFW libraries and include directories
#
find_path(PFW_CORE_ROOT_DIR NAMES include/parameter/plugin/Subsystem.h)

find_library(PFW_CORE_LIBRARY NAMES parameter
    HINTS ${PFW_CORE_ROOT_DIR}/lib)

find_path(PFW_CORE_INCLUDE_DIR NAMES Subsystem.h
    HINTS ${PFW_CORE_ROOT_DIR}/include/parameter/plugin)
find_path(PFW_XMLSERIALIZER_INCLUDE_DIR NAMES XmlSink.h
    HINTS ${PFW_CORE_ROOT_DIR}/include/xmlserializer)

set(PFW_INCLUDE_DIRS ${PFW_CORE_INCLUDE_DIR} ${PFW_XMLSERIALIZER_INCLUDE_DIR})
set(PFW_LIBRARIES ${PFW_CORE_LIBRARY})

add_library(skeleton-subsystem SHARED
SkeletonSubsystemBuilder.cpp
SkeletonSubsystem.cpp
SkeletonSubsystemObject.cpp)

include_directories(${PFW_INCLUDE_DIRS})

install(TARGETS skeleton-subsystem LIBRARY DESTINATION lib)