reactos/base/applications/rapps/CMakeLists.txt
Whindmar Saksit 57b775ef6e
[RAPPS] Automatically generate installer/uninstaller for downloaded zip/cab files (#6652)
With a single database line added to applications distributed as zip/cab allows rapps.exe to act as an installer that automatically extracts the files and creates a startmenu shortcut. It can also uninstall the extracted files (and optionally other files and registry entries created by the application).
2024-05-08 23:58:54 +02:00

57 lines
1.5 KiB
CMake

project(rapps)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
include_directories(
${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/zlib
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/zlib/contrib)
include_directories(include)
list(APPEND SOURCE
appdb.cpp
appinfo.cpp
appview.cpp
asyncinet.cpp
cabinet.cpp
configparser.cpp
geninst.cpp
gui.cpp
integrity.cpp
loaddlg.cpp
misc.cpp
settings.cpp
settingsdlg.cpp
unattended.cpp
winmain.cpp
include/appdb.h
include/appinfo.h
include/appview.h
include/asyncinet.h
include/configparser.h
include/crichedit.h
include/defines.h
include/dialogs.h
include/gui.h
include/misc.h
include/rapps.h
include/resource.h
include/rosui.h
include/settings.h
include/unattended.h
include/winmain.h
${ZLIB_SOURCE}
)
add_definitions(
-DUSE_CERT_PINNING)
file(GLOB_RECURSE rapps_rc_deps res/*.*)
add_rc_deps(rapps.rc ${rapps_rc_deps})
add_executable(rapps ${SOURCE} rapps.rc)
set_module_type(rapps win32gui UNICODE)
target_link_libraries(rapps conutils ${PSEH_LIB} uuid wine cpprt atl_classes minizip zlib)
add_importlibs(rapps advapi32 comctl32 gdi32 wininet user32 shell32 shlwapi ole32 setupapi gdiplus msvcrt kernel32 ntdll)
add_pch(rapps include/rapps.h SOURCE)
add_dependencies(rapps rappsmsg)
add_message_headers(ANSI rappsmsg.mc)
add_cd_file(TARGET rapps DESTINATION reactos/system32 FOR all)