CMakeLists.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. # Copyright (C) 2011 Felix Geyer <debfx@fobos.de>
  2. #
  3. # This program is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 2 or (at your option)
  6. # version 3 of the License.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
  16. add_unit_test(NAME testgui SOURCES TestGui.cpp ../util/TemporaryFile.cpp ../mock/MockRemoteProcess.cpp LIBS ${TEST_LIBRARIES})
  17. add_unit_test(NAME testguipixmaps SOURCES TestGuiPixmaps.cpp LIBS ${TEST_LIBRARIES})
  18. if(WITH_XC_BROWSER)
  19. add_unit_test(NAME testguibrowser SOURCES TestGuiBrowser.cpp ../util/TemporaryFile.cpp LIBS ${TEST_LIBRARIES})
  20. endif()
  21. if(WITH_XC_FDOSECRETS)
  22. add_unit_test(NAME testguifdosecrets
  23. SOURCES TestGuiFdoSecrets.cpp ../util/TemporaryFile.cpp ../util/FdoSecretsProxy.cpp
  24. LIBS ${TEST_LIBRARIES}
  25. # The following doesn't work because dbus-run-session expects execname to be in PATH
  26. # dbus-run-session -- execname
  27. LAUNCHER dbus-run-session --config-file ${CMAKE_CURRENT_SOURCE_DIR}/../data/dbus/session.conf -- sh -c "exec ./$0")
  28. endif()