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

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

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

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