-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
36 lines (27 loc) · 1.35 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required(VERSION 3.25)
project(kde-wine-helper)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(KF5_MIN_VERSION "5.88.0")
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
find_package(Qt5 COMPONENTS
Core
REQUIRED)
find_package(KF5 REQUIRED COMPONENTS WindowSystem)
set(CONFIG_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/config.json")
configure_file(${CONFIG_FILE_PATH} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
set(DESKTOP_FILE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/kde-wine-helper.desktop")
configure_file(${DESKTOP_FILE_PATH} ${CMAKE_CURRENT_BINARY_DIR} COPYONLY)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/icons")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/app.png" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/icons")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/transparent.png" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/icons")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/wechat.png" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/icons")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/icons/wxwork.png" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/icons")
add_executable(kde-wine-helper main.cpp XWindowListener.h Notifier.h Notifier.cpp XWindowListener.cpp Config.h PathUtil.h PathUtil.cpp)
target_link_libraries(kde-wine-helper
Qt5::Core
KF5::WindowSystem
)