-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
94 lines (82 loc) · 2.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# RWordPad --- Independent ReactOS WordPad
# CMake minimum version
cmake_minimum_required(VERSION 3.5)
# project name and languages
project(RWordPad C RC)
##############################################################################
# Debugging
if (DBG)
add_definitions(-D_DEBUG=1)
endif()
##############################################################################
# Architecture
if (MSVC)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_AMD64_ -D_M_AMD64)
else()
add_definitions(-D_X86_ -D_M_IX86)
endif()
endif()
##############################################################################
# wordpad.exe
add_executable(wordpad WIN32
olecallback.c
print.c
registry.c
wordpad.c
rsrc.rc
compat/debug.c
compat/wWinMain.c)
target_compile_definitions(wordpad PRIVATE
UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS STRSAFE_NO_DEPRECATE __REACTOS__
__RWORDPAD__
RICHEDIT_CLASS20W=RICHEDIT_CLASSW
LANGUAGE_BG_BG
LANGUAGE_CS_CZ
LANGUAGE_DA_DK
LANGUAGE_DE_DE
LANGUAGE_EL_GR
LANGUAGE_EN_US
LANGUAGE_ES_ES
LANGUAGE_ET_EE
LANGUAGE_EU_ES
LANGUAGE_FI_FI
LANGUAGE_FR_FR
LANGUAGE_HE_IL
LANGUAGE_HI_IN
LANGUAGE_HR_HR
LANGUAGE_HU_HU
LANGUAGE_HY_AM
LANGUAGE_ID_ID
LANGUAGE_IT_IT
LANGUAGE_JA_JP
LANGUAGE_KO_KR
LANGUAGE_LT_LT
LANGUAGE_MS_MY
LANGUAGE_NB_NO
LANGUAGE_NL_NL
LANGUAGE_NO_NO
LANGUAGE_PL_PL
LANGUAGE_PT_BR
LANGUAGE_PT_PT
LANGUAGE_RO_RO
LANGUAGE_RU_RU
LANGUAGE_SK_SK
LANGUAGE_SL_SI
LANGUAGE_SQ_AL
LANGUAGE_SV_SE
LANGUAGE_TH_TH
LANGUAGE_TR_TR
LANGUAGE_UK_UA
LANGUAGE_UZ_UZ
LANGUAGE_ZH_CN
LANGUAGE_ZH_HK
LANGUAGE_ZH_TW)
target_include_directories(wordpad PRIVATE ./ reactos/)
target_link_libraries(wordpad PRIVATE comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)
if (MSVC)
# Use wWinMain
target_link_options(wordpad PRIVATE "/entry:wWinMainCRTStartup")
# No default manifest
target_link_options(wordpad PRIVATE /MANIFEST:NO)
endif()