Skip to content

iauns/cpm-google-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpm-google-test

Build Status

CPM external for google test.

Usage

#include <gtest/gtest.h>

Please refer to Google's gtest documentation.

Linux Caveat

You will need to add '-pthread' to the end your target_link_libraries call on some linux platforms. Like so:

if (UNIX)
  if (NOT APPLE)
    set(PTHREADS "-pthread")
  endif()
endif()

add_executable(google_test_test ${Sources})
target_link_libraries(google_test_test ${CPM_LIBRARIES} ${PTHREADS})