-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
62 lines (54 loc) · 1.69 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
cmake_minimum_required(VERSION 3.23)
project(mingwInstaller)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}
src/main.cpp
src/unpack.c
src/DownloadButton.cpp
src/Manager.cpp
src/page_about.cpp
src/page0.cpp
src/page1.cpp
src/page2.cpp
src/page3.cpp
src/page4.cpp
src/page5.cpp
src/page6.cpp
src/page7.cpp
src/page8.cpp
src/logo.cpp
src/icon.cpp
src/home.cpp
src/shortcut.cpp
src/lzma2201/C/Bcj2.c
src/lzma2201/C/Bra.c
src/lzma2201/C/Bra86.c
src/lzma2201/C/BraIA64.c
src/lzma2201/C/BraIA64.c
src/lzma2201/C/CpuArch.c
src/lzma2201/C/Delta.c
src/lzma2201/C/Lzma2Dec.c
src/lzma2201/C/LzmaDec.c
src/lzma2201/C/Ppmd7.c
src/lzma2201/C/Ppmd7Dec.c
src/lzma2201/C/7zCrc.c
src/lzma2201/C/7zCrcOpt.c
src/lzma2201/C/Sha256.c
src/lzma2201/C/Sha256Opt.c
src/lzma2201/C/7zAlloc.c
src/lzma2201/C/7zArcIn.c
src/lzma2201/C/7zBuf.c
src/lzma2201/C/7zBuf2.c
src/lzma2201/C/7zDec.c
src/lzma2201/C/7zFile.c
src/lzma2201/C/7zStream.c
)
target_link_libraries(${PROJECT_NAME} PRIVATE fltk fltk_images curl )
IF (WIN32)
add_definitions(-DNGHTTP2_STATICLIB -DCURL_STATICLIB -DNO_SSL_DL)
add_link_options(-s)
target_link_libraries(${PROJECT_NAME} PRIVATE
png z nghttp2 ssl crypto psl idn2 ssh2 zstd brotlidec brotlienc brotlicommon
crypt32 ws2_32 wldap32 user32 shell32 comctl32 iconv unistring -s -mwindows -static -OS)
#target_link_libraries(${PROJECT_NAME} PUBLIC -shared)
ENDIF()