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 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. PROJECT(openvibe-test-unit-toolkit)
  22. # ------------------
  23. # Project variables
  24. # ------------------
  25. SET(PROJECT_VERSION_MAJOR ${OVT_GLOBAL_VERSION_MAJOR})
  26. SET(PROJECT_VERSION_MINOR ${OVT_GLOBAL_VERSION_MINOR})
  27. SET(PROJECT_VERSION_PATCH ${OVT_GLOBAL_VERSION_PATCH})
  28. SET(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
  29. # ---------------------------------
  30. # Target macros
  31. # Defines target operating system, architecture and compiler
  32. # ---------------------------------
  33. SET_BUILD_PLATFORM()
  34. # ----------------------
  35. # Generate target
  36. # ----------------------
  37. ADD_DEFINITIONS( -DPROJECT_VERSION="${PROJECT_VERSION}" )
  38. INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
  39. FILE(GLOB_RECURSE SRC_FILES src/*.cpp include/*.h)
  40. ADD_LIBRARY(${PROJECT_NAME} ${SRC_FILES})
  41. SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES
  42. VERSION ${PROJECT_VERSION}
  43. SOVERSION ${PROJECT_VERSION_MAJOR}
  44. FOLDER ${TESTS_FOLDER})
  45. INCLUDE("FindOpenViBE")
  46. INCLUDE("FindOpenViBECommon")
  47. INCLUDE("FindOpenViBEToolkit")
  48. # -------------
  49. # External Use
  50. # -------------
  51. # Target name used by other target for linking purpose
  52. SET(OVT_UNIT_TOOLKIT_LIB ${PROJECT_NAME} PARENT_SCOPE)
  53. SET(OVT_UNIT_TOOLKIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)