Vladimir Golovnev (Glassez)
5 years ago
13 changed files with 438 additions and 507 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
target_sources(qbt_gui PRIVATE |
||||
# headers |
||||
logfiltermodel.h |
||||
loglistview.h |
||||
logmodel.h |
||||
|
||||
#sources |
||||
logfiltermodel.cpp |
||||
loglistview.cpp |
||||
logmodel.cpp |
||||
) |
@ -1,23 +1,8 @@
@@ -1,23 +1,8 @@
|
||||
add_library(qbt_powermanagement STATIC |
||||
# headers |
||||
powermanagement.h |
||||
|
||||
# sources |
||||
powermanagement.cpp |
||||
) |
||||
|
||||
target_link_libraries(qbt_powermanagement PUBLIC Qt5::Core) |
||||
set_target_properties(qbt_powermanagement PROPERTIES AUTOUIC False AUTORCC False) |
||||
target_include_directories(qbt_powermanagement PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
||||
target_sources(qbt_gui PRIVATE powermanagement.h powermanagement.cpp) |
||||
|
||||
if (UNIX AND Qt5DBus_FOUND) |
||||
find_package(X11) |
||||
if (X11_FOUND) |
||||
target_sources(qbt_powermanagement PRIVATE powermanagement_x11.h powermanagement_x11.cpp) |
||||
target_link_libraries(qbt_powermanagement PRIVATE Qt5::DBus) |
||||
endif (X11_FOUND) |
||||
endif (UNIX AND Qt5DBus_FOUND) |
||||
|
||||
if (WIN32) |
||||
target_link_libraries(qbt_powermanagement PRIVATE PowrProf) |
||||
endif (WIN32) |
||||
target_sources(qbt_gui PRIVATE powermanagement_x11.h powermanagement_x11.cpp) |
||||
endif() |
||||
endif() |
||||
|
@ -1,11 +1 @@
@@ -1,11 +1 @@
|
||||
add_library(qbt_qtnotify STATIC |
||||
# headers |
||||
notifications.h |
||||
|
||||
# sources |
||||
notifications.cpp |
||||
) |
||||
|
||||
set_target_properties(qbt_qtnotify PROPERTIES AUTOUIC False AUTORCC False) |
||||
target_link_libraries(qbt_qtnotify PUBLIC Qt5::DBus) |
||||
target_include_directories(qbt_qtnotify PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
||||
target_sources(qbt_gui PRIVATE notifications.h notifications.cpp) |
||||
|
Loading…
Reference in new issue