SHARE
TWEET

Untitled

a guest Oct 15th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 3.1)
  2. project(new_vector)
  3.  
  4. set(CMAKE_CXX_STANDARD 14)
  5. SET(CMAKE_INSTALL_RPATH "${PROJECT_SOURCE_DIR}/bin")
  6.  
  7. find_package(GTest REQUIRED)
  8. include_directories(${GTEST_INCLUDE_DIRS})
  9. add_executable(new_vector main.cpp)
  10.  
  11. enable_testing()
  12. add_executable(Test vector.h vector_tests.cpp)
  13.  
  14. add_test(Test ${Testing_SOURCE_DIR}/bin/testing_vector)
  15.  
  16. target_link_libraries(Test Threads::Threads ${GTEST_LIBRARIES} ${GMOCK_BOTH_LIBRARIES})
  17.  
  18. install(
  19.     TARGETS Test
  20.     RUNTIME DESTINATION ${PROJECT_SOURCE_DIR}/bin
  21. )
  22.  
  23. install(
  24.     TARGETS new_vector
  25.     RUNTIME DESTINATION ${PROJECT_SOURCE_DIR}/bin
  26. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top