qBittorrent/src/gui/powermanagement/CMakeLists.txt

24 lines
706 B
Text
Raw Normal View History

add_library(qbt_powermanagement STATIC
2019-07-13 14:51:42 +03:00
# headers
2015-11-06 21:03:18 +03:00
powermanagement.h
2019-07-13 14:51:42 +03:00
# sources
2015-11-06 21:03:18 +03:00
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})
if (UNIX AND Qt5DBus_FOUND)
2015-11-06 21:03:18 +03:00
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)
2015-11-06 21:03:18 +03:00
endif (X11_FOUND)
endif (UNIX AND Qt5DBus_FOUND)
2015-11-06 21:03:18 +03:00
if (WIN32)
target_link_libraries(qbt_powermanagement PRIVATE PowrProf)
2015-11-06 21:03:18 +03:00
endif (WIN32)