source: pacpusframework/branches/2.0-beta1/src/PacpusLib/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: 3.0 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(PacpusLib)
10
11# ========================================
12# Configure qt4
13# ========================================
14#if(QT4_FOUND)
15# set(QT_USE_QTXML true)
16# include(${QT_USE_FILE})
17#else()
18# message(ERROR "Qt4 needed")
19#endif()
20
21
22# ========================================
23# Compiler definitions
24# ========================================
25add_definitions(
26 -DPACPUSLIB_EXPORTS
27 -DQT_NO_KEYWORDS
28 ${QT_DEFINITIONS}
29)
30
31# ========================================
32# Include directories
33# ========================================
34include_directories(
35 ${QT_INCLUDE_DIR}
36)
37
38# ========================================
39# List of sources
40# ========================================
41set(
42 PROJECT_SRCS
43 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/cstdint.h
44 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentBase.h
45 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactory.h
46 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentFactoryBase.h
47 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ComponentManager.h
48 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/Log.h
49 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/pacpus.h
50 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusApplication.h
51 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/road_time.h
52 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlComponentConfig.h
53 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/XmlConfigFile.h
54
55 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/ConnectionBase.h
56 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/inputOutputBase.h
57 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/inputOutputInterface.h
58 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/PacpusEvent.h
59 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/CommunicationComponent.h
60
61 ./ComponentBase.cpp
62 ./ComponentFactoryBase.cpp
63 ./ComponentManager.cpp
64 ./Log.cpp
65 ./PacpusApplication.cpp
66 ./XmlComponentConfig.cpp
67 ./XmlConfigFile.cpp
68 ./inputOutputInterface.cpp
69)
70
71set(
72 FILES_TO_MOC
73 ${PACPUS_INCLUDE_DIR}/Pacpus/kernel/inputOutputBase.h
74)
75
76 qt5_wrap_cpp(
77 PROJECT_MOC_SRCS
78 ${FILES_TO_MOC}
79 )
80
81# ========================================
82# Build a library
83# ========================================
84pacpus_add_library(
85 ${PROJECT_NAME} SHARED
86 ${PROJECT_SRCS}
87 ${PROJECT_MOC_SRCS}
88)
89
90# ========================================
91# Libraries
92# ========================================
93target_link_libraries(
94 ${PROJECT_NAME}
95 ${QT_LIBRARIES}
96 ${PACPUS_DEPENDENCIES_LIB}
97 FileLib
98)
99
100# ========================================
101# Install
102# ========================================
103pacpus_install(${PROJECT_NAME})
104
105# ========================================
106# Folder
107# ========================================
108pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.