source: pacpusframework/trunk/src/dbcDecriptor/CMakeLists.txt@ 372

Last change on this file since 372 was 331, checked in by phudelai, 10 years ago

Icon added to all graphic applications

File size: 1.9 KB
Line 
1PROJECT(PacpusDBCDecriptor)
2################################################################################
3CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
4
5# ========================================
6# Configure qt4
7# ========================================
8FIND_PACKAGE(Qt4 REQUIRED)
9IF(QT4_FOUND)
10 SET(QT_USE_QTGUI TRUE)
11 INCLUDE(${QT_USE_FILE})
12ELSE()
13 MESSAGE(ERROR " QT4 NEEDED")
14ENDIF()
15
16IF(WIN32)
17 LINK_LIBRARIES(${QT_QTMAIN_LIBRARY})
18 SET(GUI_TYPE WIN32)
19ENDIF(WIN32)
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/mainwindow.cpp
42 src/main.cpp
43 src/mainwindow.h
44 src/structure.h
45 ../ico/heudiasycIco.rc
46)
47
48# ========================================
49# Files to MOC
50# ========================================
51SET(
52 FILES_TO_MOC
53 src/mainwindow.h
54)
55
56SET(
57 UI_FILES
58 src/mainwindow.ui
59)
60
61# ========================================
62# Call MOC
63# ========================================
64QT4_WRAP_CPP(
65 PROJECT_MOC_SRCS
66 ${FILES_TO_MOC}
67)
68
69QT4_WRAP_UI(
70 PROJECT_UI_SRCS
71 ${UI_FILES}
72)
73
74# ========================================
75# Build an executable
76# ========================================
77pacpus_add_executable(
78 ${PROJECT_NAME}
79 ${GUI_TYPE}
80 ${PROJECT_SRCS}
81 ${PROJECT_MOC_SRCS}
82 ${PROJECT_UI_SRCS}
83)
84
85# ========================================
86# Libraries
87# ========================================
88TARGET_LINK_LIBRARIES(
89 ${PROJECT_NAME}
90 ${QT_LIBRARIES}
91)
92
93# ========================================
94# Install
95# ========================================
96pacpus_install(${PROJECT_NAME})
Note: See TracBrowser for help on using the repository browser.