source: pacpusframework/branches/0.2.x/src/dbcDecriptor/CMakeLists.txt@ 371

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

modification of the structure_gps.h file: add structure for spanpvaxa frame (Novatel Span CPT)

File size: 3.4 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(PacpusDBCDecriptor)
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(${QT_DEFINITIONS})
15
16# ========================================
17# Include directories
18# ========================================
19include_directories(
20 ${CMAKE_BINARY_DIR}/DBITEPlayer
21 ${QT_INCLUDE_DIR}
22)
23# Compiler flags coming from PacpusDependencies and PacpusPlatforms
24add_definitions(${PACPUS_DEFINITIONS})
25endif(PACPUS_FOUND)
26
27# ========================================
28# Link directories
29# ========================================
30link_directories(
31 ${PROJECT_BINARY_DIR}/../PacpusLib
32 ${PROJECT_BINARY_DIR}/../FileLib
33 ${PROJECT_BINARY_DIR}/../DBITEPlayerLib
34 ${PROJECT_BINARY_DIR}/../PacpusTools
35 ${PROJECT_BINARY_DIR}/../RoadTime
36)
37
38# ========================================
39# Link directories
40# ========================================
41link_directories(
42 ${PROJECT_BINARY_DIR}/../PacpusLib
43 ${PROJECT_BINARY_DIR}/../FileLib
44 ${PROJECT_BINARY_DIR}/../DBITEPlayerLib
45 ${PROJECT_BINARY_DIR}/../PacpusTools
46 ${PROJECT_BINARY_DIR}/../RoadTime
47)
48
49# ========================================
50# List of sources
51# ========================================
52set(PROJECT_HDRS
53
54)
55set(PROJECT_SRCS
56 src/mainwindow.cpp
57 src/main.cpp
58 src/mainwindow.h
59 src/structure.h
60 ../ico/heudiasycIco.rc
61)
62
63# ========================================
64# Files to MOC
65# ========================================
66SET(
67 FILES_TO_MOC
68 src/mainwindow.h
69)
70
71SET(
72 UI_FILES
73 src/mainwindow.ui
74)
75
76# ========================================
77# Call MOC
78# ========================================
79QT_WRAP_CPP(
80 PROJECT_MOC_SRCS
81 ${FILES_TO_MOC}
82)
83
84QT_WRAP_UI(
85 PROJECT_UI_SRCS
86 ${UI_FILES}
87)
88
89# ========================================
90# Build an executable
91# ========================================
92pacpus_add_executable(
93 ${PROJECT_NAME}
94 ${GUI_TYPE}
95 ${PROJECT_SRCS}
96 ${PROJECT_MOC_SRCS}
97 ${PROJECT_UI_SRCS}
98
99)
100
101# ========================================
102# Libraries & Dependencies
103# ========================================
104
105set(OPT_LIBRARIES
106 optimized dbiteplayerlib debug dbiteplayerlib_d
107 optimized FileLib debug FileLib_d
108 optimized PacpusLib debug PacpusLib_d
109)
110
111# Windows platform
112if(WIN32)
113 LIST(APPEND OPT_LIBRARIES
114 optimized ROAD_TIME debug ROAD_TIME_d
115 Winmm
116 )
117endif()
118
119if(UNIX)
120 LIST(APPEND OPT_LIBRARIES
121 pthread
122 )
123endif()
124
125# All the platform
126target_link_libraries(
127 ${PROJECT_NAME}
128 ${QT_LIBRARIES}
129 ${OPT_LIBRARIES}
130 ${PACPUS_DEPENDENCIES_LIB}
131)
132
133# ========================================
134# Install
135# ========================================
136pacpus_install(${PROJECT_NAME})
137
138# ========================================
139# Folder
140# ========================================
141pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.