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.

28 lines
1.2 KiB

  1. # Initialize ######################################################################################
  2. Include ( cotire OPTIONAL )
  3. Include ( cmake_tests OPTIONAL )
  4. # Project: test_ecs ###############################################################################
  5. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-backtrace-limit=0")
  6. Project ( test_ecs )
  7. File ( GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp )
  8. Add_Executable ( test_ecs EXCLUDE_FROM_ALL ${SOURCE_FILES} )
  9. Target_Link_Libraries (
  10. test_ecs
  11. ecs
  12. gmock_main
  13. gmock
  14. gtest
  15. pthread
  16. )
  17. If ( __COTIRE_INCLUDED )
  18. Cotire ( test_ecs )
  19. EndIf ( )
  20. If ( __CMAKE_TESTS_INCLUDED )
  21. Add_CMake_Test ( NAME ecs
  22. TARGET test_ecs )
  23. EndIf ( )