File: gtest.cmake

package info (click to toggle)
apitrace 11.1%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 13,648 kB
  • sloc: cpp: 183,110; python: 33,685; ansic: 25,073; sh: 143; makefile: 88
file content (14 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
add_library (gtest
    gtest/googletest/src/gtest-all.cc
)

target_compile_definitions (gtest PUBLIC GTEST_HAS_TR1_TUPLE=0)

target_include_directories (gtest
    PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/gtest/googletest/include
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/gtest/googletest
)

target_link_libraries (gtest PUBLIC ${CMAKE_THREAD_LIBS_INIT})

add_library (GTest::GTest ALIAS gtest)