source: pacpusframework/branches/2.0-beta1/src/PacpusSensor/CMakeLists.txt@ 111

Last change on this file since 111 was 111, checked in by morasjul, 11 years ago

Beta-2 : Add missing file inputOutputBase.cpp, et clean CMakeList

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1#################################################
2# ___________ ____ ______ __ __ _____ #
3# \____ \__ \ _/ ___\\____ \| | \/ ___/ #
4# | |_> > __ \\ \___| |_> > | /\___ \ #
5# | __(____ /\___ > __/|____//____ > #
6# |__| \/ \/|__| \/ #
7# #
8#################################################
9project(PacpusSensor)
10
11# ========================================
12# Compiler definitions
13# ========================================
14add_definitions(
15 ${QT_DEFINITIONS}
16)
17
18# ========================================
19# Include directories
20# ========================================
21include_directories(
22 ${PROJECT_BINARY_DIR}
23 ${QT_INCLUDE_DIR}
24)
25# ========================================
26# Link directories
27# ========================================
28link_directories(
29 ${PROJECT_BINARY_DIR}/../PacpusLib
30 ${PROJECT_BINARY_DIR}/../FileLib
31)
32
33# ========================================
34# List of sources
35# ========================================
36set(
37 PROJECT_SRCS
38 src/ui/pacpusmainwindow.cpp
39 src/ui/pacpusmainwindow.h
40 src/main.cpp
41)
42
43# ========================================
44# Qt4 stuff
45# ========================================
46set(SENSOR_UI_CLASSES src/ui/pacpusmainwindow.ui)
47set(SENSOR_MOC_CLASSES src/ui/pacpusmainwindow.h)
48qt5_wrap_ui(SENSOR_UI_SOURCES_H ${SENSOR_UI_CLASSES})
49qt5_wrap_cpp(SENSOR_MOC_SOURCES ${SENSOR_MOC_CLASSES})
50source_group(Main_ui FILES ${PROJECT_SRCS} )
51source_group(moc FILES ${SENSOR_MOC_SOURCES} ${SENSOR_UI_SOURCES_H} )
52
53# ========================================
54# Build an executable
55# ========================================
56pacpus_add_executable(
57 ${PROJECT_NAME}
58 ./src/main.cpp
59 ./src/ui/pacpusmainwindow.cpp
60 ./src/ui/pacpusmainwindow.h
61 ${SENSOR_MOC_SOURCES}
62 ${SENSOR_UI_CLASSES}
63)
64
65# ========================================
66# Libraries
67# ========================================
68# Windows platform
69if(WIN32)
70set(LIBS
71 optimized ROAD_TIME debug ROAD_TIME_d
72 Winmm
73)
74endif()
75
76# All the platform
77target_link_libraries(
78 ${PROJECT_NAME}
79 ${PACPUS_DEPENDENCIES_LIB}
80 optimized FileLib debug FileLib_d
81 optimized PacpusLib debug PacpusLib_d
82 ${LIBS}
83 ${QT_LIBRARIES}
84)
85
86# ========================================
87# Install
88# ========================================
89pacpus_install(${PROJECT_NAME})
90
91# ========================================
92# Folder
93# ========================================
94pacpus_folder(${PROJECT_NAME} "tools")
Note: See TracBrowser for help on using the repository browser.