CMakeLists.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #-------------------------------------------------------------------------------------------
  2. # Copyright (C) Electronic Arts Inc. All rights reserved.
  3. #-------------------------------------------------------------------------------------------
  4. cmake_minimum_required(VERSION 3.1)
  5. project(EABase CXX)
  6. #-------------------------------------------------------------------------------------------
  7. # Options
  8. #-------------------------------------------------------------------------------------------
  9. option(EABASE_BUILD_TESTS "Enable generation of build files for tests" OFF)
  10. #-------------------------------------------------------------------------------------------
  11. # Package Tests
  12. #-------------------------------------------------------------------------------------------
  13. if(EABASE_BUILD_TESTS)
  14. add_subdirectory(test)
  15. endif()
  16. #-------------------------------------------------------------------------------------------
  17. # Defines
  18. #-------------------------------------------------------------------------------------------
  19. add_definitions(-D_CHAR16T)
  20. #-------------------------------------------------------------------------------------------
  21. # Header only library
  22. #-------------------------------------------------------------------------------------------
  23. add_library(EABase INTERFACE)
  24. #-------------------------------------------------------------------------------------------
  25. # Include dirs
  26. #-------------------------------------------------------------------------------------------
  27. target_include_directories(EABase INTERFACE include/Common)
  28. #-------------------------------------------------------------------------------------------
  29. # Installation
  30. #-------------------------------------------------------------------------------------------
  31. install(DIRECTORY include/Common/EABase DESTINATION include)