Mercurial > trustbridge
diff packaging/CMakeLists.txt @ 1118:fd85a02d771d
(issue54) Implement a privilege drop to execute the program after installation.
This commit is extremly ugly as I accidentally worked in a
working tree that was partially merged with default.
To review the real change please check the commit that will
merge this branch into default.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 16 Sep 2014 19:45:19 +0200 |
parents | 1c1964c27b39 |
children | 1c9001db6ea2 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packaging/CMakeLists.txt Tue Sep 16 19:45:19 2014 +0200 @@ -0,0 +1,23 @@ +# Configure packaging script for testing +configure_file (win-createpackage.sh.in win-createpackage.sh @ONLY) +configure_file (create-dist-package.sh.in create-dist-package.sh @ONLY) +configure_file (linux-createpackage.sh.in linux-createpackage.sh @ONLY) +configure_file (linux-installer.inc.in linux-installer.inc @ONLY) +configure_file (linux-installer.l10n-de linux-installer.l10n-de COPYONLY) + +if (WIN32) + # Build the nss safer plugin. + include_directories(${CMAKE_SOURCE_DIR}/common) + + add_library(desktopshellrun SHARED desktopshellrun.cpp) + target_link_libraries(desktopshellrun + trustbridge_common + -luserenv + -lshell32 + -lcrypt32 + -lssp + -lshlwapi + ${POLARSSL_LIBRARIES}) # trustbridge_common pulls it in. + set_target_properties(desktopshellrun PROPERTIES PREFIX "") + set_target_properties(desktopshellrun PROPERTIES OUTPUT_NAME "DesktopShellRun") +endif()