You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.8KB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #######################################################################
  2. # Software License Agreement (AGPL-3 License)
  3. #
  4. # OpenViBE SDK Test Software
  5. # Based on OpenViBE V1.1.0, Copyright (C) Inria, 2006-2015
  6. # Copyright (C) Inria, 2015-2017,V1.0
  7. #
  8. # This program is free software: you can redistribute it and/or modify
  9. # it under the terms of the GNU Affero General Public License version 3,
  10. # as published by the Free Software Foundation.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program.
  19. # If not, see <http://www.gnu.org/licenses/>.
  20. #######################################################################
  21. FUNCTION(SETUP_TEST)
  22. SET_BUILD_PLATFORM()
  23. INCLUDE("FindOpenViBE")
  24. INCLUDE("FindOpenViBECommon")
  25. INCLUDE("FindOpenViBEModuleXML")
  26. INCLUDE("FindOpenViBEModuleFS")
  27. INCLUDE("FindThirdPartyBoost")
  28. INCLUDE("FindThirdPartyBoost_FileSystem")
  29. SET_PROPERTY(TARGET ${PROJECT_NAME} PROPERTY FOLDER ${TESTS_FOLDER}) # Place project in folder unit-test (for some IDE)
  30. TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${GTEST_BOTH_LIBRARIES})
  31. # Add test with parameter to driver
  32. ADD_DEFINITIONS("-DDATA_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/data\"")
  33. ADD_DEFINITIONS("-DTEMP_DIR=\"${OVT_TEST_TEMPORARY_DIR}\"")
  34. ENDFUNCTION()
  35. PROJECT(openvibe-module-xml-reader-test)
  36. ADD_EXECUTABLE(${PROJECT_NAME} uoXMLReaderTest.cpp)
  37. SETUP_TEST()
  38. ADD_TEST(NAME uoXMLReaderTest COMMAND ${PROJECT_NAME})
  39. PROJECT(openvibe-module-xml-writer-test)
  40. ADD_EXECUTABLE(${PROJECT_NAME} uoXMLWriterTest.cpp)
  41. SETUP_TEST()
  42. ADD_TEST(NAME uoXMLWriterTest COMMAND ${PROJECT_NAME})