-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
42 lines (36 loc) · 1.06 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
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.20)
set(PROJECT_NAME "Windicator")
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 20)
add_compile_definitions(_UNICODE UNICODE)
# Uncomment the following line to add timeout to wait so that the
# registry handle can be released. Not really needed and causes
# a very tiny bit of extra CPU to keep checking for exit condition.
#
#add_compile_definitions(_TIDY_TIMEOUT)
add_link_options(
/SUBSYSTEM:WINDOWS
/DYNAMICBASE
Version.lib
Comctl32.lib
/MACHINE:X64
)
add_executable(
${PROJECT_NAME}
resources/resource.h
resources/WinApp.rc
resources/app.manifest
include/messages.h
include/aboutDialog.h
src/aboutDialog.cpp
include/MainWindow.h
src/MainWindow.cpp
include/notificationIcon.h
src/notificationIcon.cpp
include/notificationIcon.h
src/notificationIcon.cpp
include/desktopWatcher.h
src/desktopWatcher.cpp
src/winMain.cpp
)
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)