source: pacpussensors/trunk/Alasca/CMakeLists.txt@ 1

Last change on this file since 1 was 1, checked in by DHERBOMEZ Gérald, 11 years ago

ajout des capteurs CanGateway et Alasca

File size: 2.2 KB
Line 
1project(Alasca)
2################################################################################
3add_definitions( -DALASCAXT_EXPORTS )
4
5# ========================================
6# Configure qt4
7# ========================================
8if(QT4_FOUND)
9 set(QT_USE_QTXML true)
10 set(QT_USE_QTNETWORK true)
11 include(${QT_USE_FILE})
12else()
13 message(ERROR "Qt4 needed")
14endif()
15
16# ========================================
17# Compiler definitions
18# ========================================
19add_definitions(
20 ${QT_DEFINITIONS}
21)
22
23# ========================================
24# Include directories
25# ========================================
26include_directories(
27 ${PROJECT_BINARY_DIR}
28 ${QT_INCLUDE_DIR}
29)
30
31# ========================================
32# Link directories
33# ========================================
34link_directories(
35)
36
37pacpus_plugin(PLUGIN_CPP PLUGIN_H ${PROJECT_NAME} )
38
39# ========================================
40# List of sources
41# ========================================
42set(
43 PROJECT_SRCS
44 AlascaComponent.cpp
45 AlascaComponent.h
46 AlascaSocket.cpp
47 AlascaSocket.h
48 ${PLUGIN_CPP}
49)
50
51# ========================================
52# Files to MOC
53# ========================================
54set(
55 FILES_TO_MOC
56 AlascaComponent.h
57 AlascaSocket.h
58 ${PLUGIN_H}
59)
60
61set(
62 UI_FILES
63
64)
65
66# ========================================
67# Call MOC
68# ========================================
69qt4_wrap_cpp(
70 PROJECT_MOC_SRCS
71 ${FILES_TO_MOC}
72)
73
74qt4_wrap_ui(
75 PROJECT_UI_SRCS
76 ${UI_FILES}
77)
78
79# ========================================
80# Build a library
81# ========================================
82pacpus_add_library(
83 ${PROJECT_NAME} SHARED
84 ${PROJECT_SRCS}
85 ${PROJECT_MOC_SRCS}
86 ${PROJECT_UI_SRCS}
87)
88
89# ========================================
90# Libraries
91# ========================================
92# All the platform
93target_link_libraries(
94 ${PROJECT_NAME}
95 ${PACPUS_LIBRARIES}
96 ${QT_LIBRARIES}
97 ${PACPUS_DEPENDENCIES_LIB}
98)
99
100# ========================================
101# Install
102# ========================================
103pacpus_install(${PROJECT_NAME})
104
Note: See TracBrowser for help on using the repository browser.