source: pacpusframework/trunk/src/PacpusTools/CMakeLists.txt@ 310

Last change on this file since 310 was 300, checked in by Marek Kurdej, 11 years ago

Created unified SharedMemory.

  • Property svn:executable set to *
File size: 2.7 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(PacpusTools)
10
11create_export(EXPORT_HDR ${PROJECT_NAME} "${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools")
12
13################################################################################
14# Compiler definitions
15add_definitions(${QT_DEFINITIONS})
16
17################################################################################
18# DIRECTORIES
19include_directories(
20 ${QT_INCLUDE_DIR}
21)
22
23link_directories(
24 ${PROJECT_BINARY_DIR}/../PacpusLib
25 ${PROJECT_BINARY_DIR}/../RoadTime
26)
27
28################################################################################
29# FILES
30set(HDRS
31 ${EXPORT_HDR}
32 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h
33 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/BinaryDecoder.h
34 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/geodesie.h
35 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/matrice.h
36 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PeriodicWorker.h
37 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/SharedMemory.h
38
39 #${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/pacpusStruct.h
40 #${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PacpusSerialPort.h
41)
42
43set(SRCS
44 src/matrice.cpp
45 src/geodesie.cpp
46 src/AsyncWorkerBase.cpp
47 src/PeriodicWorker.cpp
48 #src/PacpusSerialPort.cpp
49 src/SharedMemory.cpp
50)
51
52################################################################################
53# QT
54set(FILES_TO_MOC
55 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/AsyncWorkerBase.h
56 ${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PeriodicWorker.h
57 #${PACPUS_INCLUDE_DIR}/Pacpus/PacpusTools/PacpusSerialPort.h
58)
59
60qt_wrap_cpp(
61 PROJECT_MOC_SRCS
62 ${FILES_TO_MOC}
63)
64
65################################################################################
66# BUILD and LINK
67pacpus_add_library(${PROJECT_NAME} SHARED
68 ${HDRS}
69 ${SRCS}
70 ${PROJECT_MOC_SRCS}
71)
72
73# LIBS
74set(OPT_LIBRARIES
75 optimized PacpusLib debug PacpusLib_d
76)
77
78if(WIN32)
79 LIST(APPEND OPT_LIBRARIES
80 optimized ROAD_TIME debug ROAD_TIME_d
81)
82endif()
83
84# LINK
85target_link_libraries(${PROJECT_NAME}
86 ${QT_LIBRARIES}
87 ${PACPUS_DEPENDENCIES_LIB}
88 ${OPT_LIBRARIES}
89)
90
91################################################################################
92# INSTALL
93pacpus_install(${PROJECT_NAME})
94
95################################################################################
96# FOLDER
97pacpus_folder(${PROJECT_NAME} "libraries")
Note: See TracBrowser for help on using the repository browser.