1project(rapps)
2
3include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib)
4include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
5include_directories(
6    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
7    ${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/zlib/contrib)
8include_directories(include)
9
10list(APPEND SOURCE
11    appdb.cpp
12    appinfo.cpp
13    appview.cpp
14    asyncinet.cpp
15    cabinet.cpp
16    configparser.cpp
17    geninst.cpp
18    gui.cpp
19    integrity.cpp
20    loaddlg.cpp
21    misc.cpp
22    settings.cpp
23    settingsdlg.cpp
24    unattended.cpp
25    winmain.cpp
26    include/appdb.h
27    include/appinfo.h
28    include/appview.h
29    include/asyncinet.h
30    include/configparser.h
31    include/crichedit.h
32    include/defines.h
33    include/dialogs.h
34    include/gui.h
35    include/misc.h
36    include/rapps.h
37    include/resource.h
38    include/rosui.h
39    include/settings.h
40    include/unattended.h
41    include/winmain.h
42    ${ZLIB_SOURCE}
43)
44
45add_definitions(
46    -DUSE_CERT_PINNING)
47
48file(GLOB_RECURSE rapps_rc_deps res/*.*)
49add_rc_deps(rapps.rc ${rapps_rc_deps})
50add_executable(rapps ${SOURCE} rapps.rc)
51set_module_type(rapps win32gui UNICODE)
52target_link_libraries(rapps conutils ${PSEH_LIB} uuid wine cpprt atl_classes minizip zlib)
53add_importlibs(rapps advapi32 comctl32 gdi32 wininet user32 shell32 shlwapi ole32 setupapi gdiplus msvcrt kernel32 ntdll)
54add_pch(rapps include/rapps.h SOURCE)
55add_dependencies(rapps rappsmsg)
56add_message_headers(ANSI rappsmsg.mc)
57add_cd_file(TARGET rapps DESTINATION reactos/system32 FOR all)
58