1project(rapps)
2
3set_cpp(WITH_RUNTIME)
4
5include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
6include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib)
7include_directories(include)
8
9list(APPEND SOURCE
10    aboutdlg.cpp
11    available.cpp
12    cabinet.cpp
13    gui.cpp
14    installed.cpp
15    integrity.cpp
16    loaddlg.cpp
17    misc.cpp
18    settingsdlg.cpp
19    winmain.cpp
20    unattended.cpp
21    include/rapps.h
22    include/available.h
23    include/dialogs.h
24    include/installed.h
25    include/crichedit.h
26    include/defines.h
27    include/misc.h
28    include/resource.h
29    include/rosui.h
30    include/winmain.h
31    include/unattended.h
32)
33
34add_definitions(
35    -DUSE_CERT_PINNING
36    -D_ATL_NO_EXCEPTIONS)
37
38file(GLOB_RECURSE rapps_rc_deps res/*.*)
39add_rc_deps(rapps.rc ${rapps_rc_deps})
40add_executable(rapps ${SOURCE} rapps.rc)
41set_module_type(rapps win32gui UNICODE)
42target_link_libraries(rapps uuid wine)
43add_importlibs(rapps advapi32 comctl32 gdi32 wininet user32 shell32 shlwapi ole32 setupapi msvcrt kernel32 ntdll)
44add_pch(rapps include/rapps.h SOURCE)
45add_dependencies(rapps rappsmsg)
46add_message_headers(ANSI rappsmsg.mc)
47add_cd_file(TARGET rapps DESTINATION reactos/system32 FOR all)
48