|
1 | | -# Copyright (c) 2014, Intel Corporation |
| 1 | +# Copyright (c) 2014-2015, Intel Corporation |
2 | 2 | # All rights reserved. |
3 | 3 | # |
4 | 4 | # Redistribution and use in source and binary forms, with or without modification, |
@@ -31,31 +31,26 @@ cmake_minimum_required(VERSION 2.8) |
31 | 31 |
|
32 | 32 | project(parameter-framework-plugins-filesystem) |
33 | 33 |
|
34 | | -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra") |
| 34 | +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Werror -Wall -Wextra") |
35 | 35 |
|
36 | 36 | # |
37 | 37 | # Find PFW libraries and include directories |
38 | 38 | # |
39 | | -find_path(PFW_CORE_ROOT_DIR NAMES include/parameter/plugin/Subsystem.h) |
| 39 | +find_path(PFW_INCLUDE_ROOT NAMES parameter/plugin/Plugin.h) |
40 | 40 |
|
41 | | -find_library(PFW_CORE_LIBRARY NAMES parameter |
42 | | - HINTS ${PFW_CORE_ROOT_DIR}/lib) |
43 | | - |
44 | | -find_path(PFW_CORE_INCLUDE_DIR NAMES Subsystem.h |
45 | | - HINTS ${PFW_CORE_ROOT_DIR}/include/parameter/plugin) |
46 | | -find_path(PFW_XMLSERIALIZER_INCLUDE_DIR NAMES XmlSink.h |
47 | | - HINTS ${PFW_CORE_ROOT_DIR}/include/xmlserializer) |
48 | | - |
49 | | -set(PFW_INCLUDE_DIRS ${PFW_CORE_INCLUDE_DIR} ${PFW_XMLSERIALIZER_INCLUDE_DIR}) |
50 | | -set(PFW_LIBRARIES ${PFW_CORE_LIBRARY}) |
| 41 | +find_library(PFW_CORE_LIBRARY NAMES parameter) |
51 | 42 |
|
| 43 | +set(PFW_INCLUDE_DIRS |
| 44 | + ${PFW_INCLUDE_ROOT}/parameter/plugin |
| 45 | + ${PFW_INCLUDE_ROOT}/xmlserializer |
| 46 | + ${PFW_INCLUDE_ROOT}/utility) |
52 | 47 |
|
53 | 48 | add_library(fs-subsystem SHARED |
54 | 49 | FSSubsystemBuilder.cpp |
55 | 50 | FSSubsystem.cpp |
56 | 51 | FSSubsystemObject.cpp) |
57 | 52 |
|
58 | | -target_link_libraries(fs-subsystem ${PFW_LIBRARIES}) |
| 53 | +target_link_libraries(fs-subsystem ${PFW_CORE_LIBRARY}) |
59 | 54 |
|
60 | 55 | include_directories(${PFW_INCLUDE_DIRS}) |
61 | 56 |
|
|
0 commit comments