diff -r 000000000000 -r c9bf2537109a ait/os/bin/opensecurityd/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ait/os/bin/opensecurityd/CMakeLists.txt Tue Nov 12 11:31:34 2013 +0100 @@ -0,0 +1,53 @@ +# ------------------------------------------------------------ +# CMakeLists.txt +# +# make: os/bin/opensecurity-server/opensecurity-server.py +# +# Autor: Oliver Maurhart, +# +# Copyright (C) 2013 AIT Austrian Institute of Technology +# AIT Austrian Institute of Technology GmbH +# Donau-City-Strasse 1 | 1220 Vienna | Austria +# http://www.ait.ac.at +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation version 2. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. +# ------------------------------------------------------------ + + +# ------------------------------------------------------------ +# test + +# script is as-is +configure_file(about.py ${CMAKE_CURRENT_BINARY_DIR}/about.py @ONLY) +configure_file(credentials.py ${CMAKE_CURRENT_BINARY_DIR}/credentials.py @ONLY) +configure_file(environment.py ${CMAKE_CURRENT_BINARY_DIR}/environment.py @ONLY) +configure_file(launch.py ${CMAKE_CURRENT_BINARY_DIR}/launch.py @ONLY) +configure_file(opensecurity-dialog.py ${CMAKE_CURRENT_BINARY_DIR}/opensecurity-dialog.py @ONLY) +configure_file(opensecurity-tray.py ${CMAKE_CURRENT_BINARY_DIR}/opensecurity-tray.py @ONLY) +configure_file(opensecurityd.py ${CMAKE_CURRENT_BINARY_DIR}/opensecurityd.py @ONLY) +configure_file(password.py ${CMAKE_CURRENT_BINARY_DIR}/password.py @ONLY) + +# copy share/opensecurity stuff for convenient testing +file(COPY ${CMAKE_SOURCE_DIR}/share/opensecurity DESTINATION ${CMAKE_BINARY_DIR}/bin/share USE_SOURCE_PERMISSIONS) + +# install script +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/about.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/credentials.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/environment.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/launch.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/opensecurity-dialog.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/opensecurity-tray.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/password.py DESTINATION bin) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/opensecurityd.py DESTINATION bin)