mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
1c421d6d23
* Prefer `PROJECT_{SOURCE,BINARY}_DIR` to `CMAKE_` ones * Extend use of 3rd-party dir vars to reduce duplication * Fix typo in submodule repo name * Remove `CURL::libcurl` target fallback The target is always available since CMake 3.12, which is our current minimum version.
18 lines
439 B
CMake
18 lines
439 B
CMake
set(GTEST_ROOT_DIR ${TR_THIRD_PARTY_SOURCE_DIR}/googletest/googletest)
|
|
|
|
add_library(gtestall STATIC)
|
|
|
|
target_sources(gtestall
|
|
PRIVATE
|
|
${GTEST_ROOT_DIR}/src/gtest-all.cc
|
|
${GTEST_ROOT_DIR}/src/gtest_main.cc)
|
|
|
|
set_property(
|
|
TARGET gtestall
|
|
PROPERTY FOLDER "${TR_THIRD_PARTY_DIR_NAME}")
|
|
|
|
target_include_directories(gtestall SYSTEM
|
|
PRIVATE
|
|
${GTEST_ROOT_DIR}
|
|
PUBLIC
|
|
${GTEST_ROOT_DIR}/include)
|