diff options
author | Mattijs Korpershoek <mattijs.korpershoek@gmail.com> | 2014-03-20 11:46:43 +0100 |
---|---|---|
committer | Mattijs Korpershoek <mattijs.korpershoek@gmail.com> | 2014-03-21 09:17:23 +0100 |
commit | 6f7fde797222b43993d4ce5e97ffce45c6b672b2 (patch) | |
tree | 395db22ab60dc2179ccd86168b06ba473f90b86b | |
parent | fb474cce72215e432308264ada9c5a7197a21125 (diff) | |
download | external_parameter-framework-6f7fde797222b43993d4ce5e97ffce45c6b672b2.zip external_parameter-framework-6f7fde797222b43993d4ce5e97ffce45c6b672b2.tar.gz external_parameter-framework-6f7fde797222b43993d4ce5e97ffce45c6b672b2.tar.bz2 |
Added CmakeLists.txt for building the plugin
-rw-r--r-- | skeleton-subsystem/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/skeleton-subsystem/CMakeLists.txt b/skeleton-subsystem/CMakeLists.txt new file mode 100644 index 0000000..1ceb531 --- /dev/null +++ b/skeleton-subsystem/CMakeLists.txt @@ -0,0 +1,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) |