File tree 4 files changed +9
-64
lines changed
4 files changed +9
-64
lines changed Original file line number Diff line number Diff line change @@ -23,45 +23,6 @@ if (NOT CMAKE_PREFIX_PATH)
23
23
endif ()
24
24
25
25
26
- ## 添加用户界面文件
27
- #set(FORMS
28
- # mainwindow.ui
29
- # )
30
-
31
- # 自动生成用户界面文件的 C++ 代码
32
- #qt5_wrap_ui(UI_HEADERS ${FORMS})
33
-
34
- # 自动生成用户界面文件的 C++ 代码
35
- # 自动生成用户界面文件的 C++ 代码
36
- #set(UI_HEADERS)
37
- if (WIN32 )
38
-
39
- #foreach(FORM ${FORMS})
40
- # get_filename_component(FORM_BASE ${FORM} NAME_WE)
41
- # set(UI_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ui_${FORM_BASE}.h")
42
- # list(APPEND UI_HEADERS ${UI_HEADER})
43
- # add_custom_command(
44
- # OUTPUT ${UI_HEADER}
45
- # COMMAND ${Qt5_DIR}/../../../bin/uic ${CMAKE_CURRENT_SOURCE_DIR}/${FORM} -o ${UI_HEADER}
46
- # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FORM}
47
- # )
48
- #endforeach()
49
-
50
- else ()
51
- # foreach(FORM ${FORMS})
52
- # get_filename_component(FORM_BASE ${FORM} NAME_WE)
53
- # set(UI_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ui_${FORM_BASE}.h")
54
- # list(APPEND UI_HEADERS ${UI_HEADER})
55
- # add_custom_command(
56
- # OUTPUT ${UI_HEADER}
57
- # COMMAND /usr/bin/uic ${CMAKE_CURRENT_SOURCE_DIR}/${FORM} -o ${UI_HEADER}
58
- # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FORM}
59
- # )
60
- # endforeach()
61
-
62
- endif ()
63
-
64
-
65
26
add_executable (${PROJECT_NAME}
66
27
main.cpp
67
28
mainwindow.cpp)
Original file line number Diff line number Diff line change @@ -38,28 +38,8 @@ endif ()
38
38
#set(UI_HEADERS)
39
39
if (WIN32 )
40
40
41
- #foreach(FORM ${FORMS})
42
- # get_filename_component(FORM_BASE ${FORM} NAME_WE)
43
- # set(UI_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ui_${FORM_BASE}.h")
44
- # list(APPEND UI_HEADERS ${UI_HEADER})
45
- # add_custom_command(
46
- # OUTPUT ${UI_HEADER}
47
- # COMMAND ${Qt5_DIR}/../../../bin/uic ${CMAKE_CURRENT_SOURCE_DIR}/${FORM} -o ${UI_HEADER}
48
- # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FORM}
49
- # )
50
- #endforeach()
51
41
52
- else ()
53
- # foreach(FORM ${FORMS})
54
- # get_filename_component(FORM_BASE ${FORM} NAME_WE)
55
- # set(UI_HEADER "${CMAKE_CURRENT_BINARY_DIR}/ui_${FORM_BASE}.h")
56
- # list(APPEND UI_HEADERS ${UI_HEADER})
57
- # add_custom_command(
58
- # OUTPUT ${UI_HEADER}
59
- # COMMAND /usr/bin/uic ${CMAKE_CURRENT_SOURCE_DIR}/${FORM} -o ${UI_HEADER}
60
- # DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${FORM}
61
- # )
62
- # endforeach()
42
+ else (UNIX )
63
43
64
44
endif ()
65
45
@@ -74,6 +54,14 @@ add_executable(${PROJECT_NAME}
74
54
${utils_src}
75
55
)
76
56
57
+
58
+ #find_package(PkgConfig REQUIRED)
59
+ #pkg_search_module(GTK REQUIRED gtk+-3.0)
60
+ #
61
+ #include_directories(${GTK_INCLUDE_DIRS})
62
+ #link_directories(${GTK_LIBRARY_DIRS})
63
+ #target_link_libraries(${PROJECT_NAME} ${GTK_LIBRARIES})
64
+
77
65
#if(WIN32)
78
66
# target_link_libraries(${PROJECT_NAME} xcb xcb-util)
79
67
#endif()
Original file line number Diff line number Diff line change 11
11
FireShot::FireShot (QWidget *parent) :
12
12
QMainWindow(parent), ui(new Ui::FireShot) {
13
13
ui->setupUi (this );
14
- #ifdef Q_OS_UNIX
15
- gdk_init (NULL , NULL );
16
- #endif // Q_OS_LINUX
17
14
}
18
15
19
16
FireShot::~FireShot () {
Original file line number Diff line number Diff line change 3
3
//
4
4
5
5
#include " spdlog_wrapper.h"
6
- #include < QDebug>
7
6
#include " spdlog/spdlog.h"
8
7
#include " spdlog/cfg/env.h" // support for loading levels from the environment variable
9
8
#include " spdlog/fmt/ostr.h" // support for user defined types
You can’t perform that action at this time.
0 commit comments