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
RevLine 
[370]1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(PacpusDBCDecriptor)
[329]10
11# ========================================
[370]12# Compiler definitions
[329]13# ========================================
[370]14add_definitions(${QT_DEFINITIONS})
[329]15
16# ========================================
[371]17# Include directories
[329]18# ========================================
[370]19include_directories(
[371]20 ${CMAKE_BINARY_DIR}/DBITEPlayer
21 ${QT_INCLUDE_DIR}
[329]22)
[370]23# Compiler flags coming from PacpusDependencies and PacpusPlatforms
24add_definitions(${PACPUS_DEFINITIONS})
25endif(PACPUS_FOUND)
[329]26
27# ========================================
[371]28# Link directories
[329]29# ========================================
[371]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
[329]36)
37
38# ========================================
[370]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# ========================================
[329]50# List of sources
51# ========================================
[370]52set(PROJECT_HDRS
53
[329]54)
[370]55set(PROJECT_SRCS
56 src/mainwindow.cpp
57 src/main.cpp
58 src/mainwindow.h
59 src/structure.h
[371]60 ../ico/heudiasycIco.rc
[370]61)
[329]62
63# ========================================
64# Files to MOC
65# ========================================
66SET(
[370]67 FILES_TO_MOC
68 src/mainwindow.h
[329]69)
70
71SET(
[370]72 UI_FILES
73 src/mainwindow.ui
[329]74)
75
76# ========================================
77# Call MOC
78# ========================================
[370]79QT_WRAP_CPP(
80 PROJECT_MOC_SRCS
81 ${FILES_TO_MOC}
[329]82)
83
[370]84QT_WRAP_UI(
85 PROJECT_UI_SRCS
86 ${UI_FILES}
[329]87)
88
[331]89# ========================================
90# Build an executable
91# ========================================
92pacpus_add_executable(
[370]93 ${PROJECT_NAME}
94 ${GUI_TYPE}
95 ${PROJECT_SRCS}
96 ${PROJECT_MOC_SRCS}
97 ${PROJECT_UI_SRCS}
98
[331]99)
[329]100
101# ========================================
[370]102# Libraries & Dependencies
[331]103# ========================================
[370]104
105set(OPT_LIBRARIES
106 optimized dbiteplayerlib debug dbiteplayerlib_d
107 optimized FileLib debug FileLib_d
108 optimized PacpusLib debug PacpusLib_d
[331]109)
110
[370]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
[331]133# ========================================
[329]134# Install
135# ========================================
[370]136pacpus_install(${PROJECT_NAME})
137
138# ========================================
139# Folder
140# ========================================
141pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.