Last change
on this file since 351 was 331, checked in by phudelai, 10 years ago |
Icon added to all graphic applications
|
File size:
1.9 KB
|
Line | |
---|
1 | PROJECT(PacpusDBCDecriptor)
|
---|
2 | ################################################################################
|
---|
3 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
---|
4 |
|
---|
5 | # ========================================
|
---|
6 | # Configure qt4
|
---|
7 | # ========================================
|
---|
8 | FIND_PACKAGE(Qt4 REQUIRED)
|
---|
9 | IF(QT4_FOUND)
|
---|
10 | SET(QT_USE_QTGUI TRUE)
|
---|
11 | INCLUDE(${QT_USE_FILE})
|
---|
12 | ELSE()
|
---|
13 | MESSAGE(ERROR " QT4 NEEDED")
|
---|
14 | ENDIF()
|
---|
15 |
|
---|
16 | IF(WIN32)
|
---|
17 | LINK_LIBRARIES(${QT_QTMAIN_LIBRARY})
|
---|
18 | SET(GUI_TYPE WIN32)
|
---|
19 | ENDIF(WIN32)
|
---|
20 |
|
---|
21 | # ========================================
|
---|
22 | # Compiler definitions
|
---|
23 | # ========================================
|
---|
24 | ADD_DEFINITIONS(
|
---|
25 | ${QT_DEFINITIONS}
|
---|
26 | )
|
---|
27 |
|
---|
28 | # ========================================
|
---|
29 | # Include directories
|
---|
30 | # ========================================
|
---|
31 | INCLUDE_DIRECTORIES(
|
---|
32 | ${PROJECT_BINARY_DIR}
|
---|
33 | ${QT_INCLUDE_DIR}
|
---|
34 | )
|
---|
35 |
|
---|
36 | # ========================================
|
---|
37 | # List of sources
|
---|
38 | # ========================================
|
---|
39 | SET(
|
---|
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 | # ========================================
|
---|
51 | SET(
|
---|
52 | FILES_TO_MOC
|
---|
53 | src/mainwindow.h
|
---|
54 | )
|
---|
55 |
|
---|
56 | SET(
|
---|
57 | UI_FILES
|
---|
58 | src/mainwindow.ui
|
---|
59 | )
|
---|
60 |
|
---|
61 | # ========================================
|
---|
62 | # Call MOC
|
---|
63 | # ========================================
|
---|
64 | QT4_WRAP_CPP(
|
---|
65 | PROJECT_MOC_SRCS
|
---|
66 | ${FILES_TO_MOC}
|
---|
67 | )
|
---|
68 |
|
---|
69 | QT4_WRAP_UI(
|
---|
70 | PROJECT_UI_SRCS
|
---|
71 | ${UI_FILES}
|
---|
72 | )
|
---|
73 |
|
---|
74 | # ========================================
|
---|
75 | # Build an executable
|
---|
76 | # ========================================
|
---|
77 | pacpus_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 | # ========================================
|
---|
88 | TARGET_LINK_LIBRARIES(
|
---|
89 | ${PROJECT_NAME}
|
---|
90 | ${QT_LIBRARIES}
|
---|
91 | )
|
---|
92 |
|
---|
93 | # ========================================
|
---|
94 | # Install
|
---|
95 | # ========================================
|
---|
96 | pacpus_install(${PROJECT_NAME}) |
---|
Note:
See
TracBrowser
for help on using the repository browser.