CMakeLists.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  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. if (NOT EABASE_BUILD_TESTS)
  21. #-------------------------------------------------------------------------------------------
  22. # Header only library
  23. #-------------------------------------------------------------------------------------------
  24. add_library(EABase INTERFACE)
  25. #-------------------------------------------------------------------------------------------
  26. # Include dirs
  27. #-------------------------------------------------------------------------------------------
  28. target_include_directories(EABase INTERFACE include/Common)
  29. endif()