CMakeLists.txt 570 B

1234567891011121314151617181920
  1. # ----------------------------------------------------------------------------
  2. # Auxiliary static library: gtest (Google test framework)
  3. # ----------------------------------------------------------------------------
  4. project(mygtest)
  5. # Fix a "bug" in VS11 (MSVC 2012):
  6. if(MSVC)
  7. add_definitions(-D_VARIADIC_MAX=10)
  8. endif(MSVC)
  9. include_directories("include")
  10. include_directories(".")
  11. add_library(mygtest STATIC src/gtest-all.cc)
  12. if(CMAKE_COMPILER_IS_GNUCXX AND UNIX)
  13. add_compile_options("-fPIC")
  14. endif()
  15. set_target_properties(mygtest PROPERTIES FOLDER "3rd party")