source: pacpusframework/branches/2.0-beta1/src/TestComponents/ShMem/CMakeLists.txt@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1project(ShMem)
2
3# ========================================
4# Basic Definitions
5# ========================================
6set(${PROJECT_NAME}_VERSION_MAJOR 0)
7set(${PROJECT_NAME}_VERSION_MINOR 1)
8
9pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME})
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 ${QT_DEFINITIONS}
16)
17
18# ========================================
19# Include directories
20# ========================================
21include_directories(
22 ${PACPUS_INCLUDE_DIR}/PacpusCityVIP/ShMem
23 ${PACPUS_INCLUDE_DIR}/Pacpus
24 ${PACPUS_INCLUDE_DIR}
25 ${PROJECT_BINARY_DIR}
26 ${QT_INCLUDE_DIR}
27)
28
29# ========================================
30# Link directories
31# ========================================
32link_directories(
33
34)
35
36# ========================================
37# List of sources
38# ========================================
39set(
40 PROJECT_SRCS
41 ShMemInput.cpp
42 ShMemOutput.cpp
43 ShMemInterface.h
44
45 ${PLUGIN_CPP}
46)
47
48# ========================================
49# Files to MOC
50# ========================================
51set(
52 FILES_TO_MOC
53 ShMemInterface.h
54 ${PLUGIN_H}
55)
56
57set(
58 UI_FILESs
59
60)
61
62# ========================================
63# Call MOC
64# ========================================
65 qt5_wrap_cpp(
66 PROJECT_MOC_SRCS
67 ${FILES_TO_MOC}
68 )
69
70qt5_wrap_ui(
71 PROJECT_UI_SRCS
72 ${UI_FILES}
73)
74
75# ========================================
76# Build a library
77# ========================================
78pacpus_add_library(
79 ${PROJECT_NAME} SHARED
80 ${PROJECT_SRCS}
81 ${PROJECT_MOC_SRCS}
82 ${PROJECT_UI_SRCS}
83)
84
85# ========================================
86# Libraries
87# ========================================
88# All the platform
89target_link_libraries(
90 ${PROJECT_NAME}
91 ${PACPUS_LIBRARIES}
92 ${QT_LIBRARIES}
93 ${PACPUS_DEPENDENCIES_LIB}
94)
95
96# ========================================
97# Install
98# ========================================
99pacpus_install(${PROJECT_NAME})
100
101# Installation of the headers
102install(DIRECTORY ${PACPUS_INCLUDE_DIR} DESTINATION "${PACPUS_ROOT}")
103
104# ========================================
105# Folder
106# ========================================
107pacpus_folder(${PROJECT_NAME} "SensorsComponent")
Note: See TracBrowser for help on using the repository browser.