1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/tests/CMakeLists.txt
fghzxm db118e7998
fix: do not test utils if not building utils (#4946)
Setting `-DENABLE_UTILS=0 -DENABLE_TESTS=1` causes CMake errors due to
tests/utils/CMakeLists.txt referencing
`$<TARGET_FILE:transmission-show>` which is undefined.  Fixed by
including the tests/utils/ directory only if `ENABLE_UTILS` is true.
2023-02-20 23:43:05 -06:00

5 lines
111 B
CMake

add_subdirectory(gtest)
add_subdirectory(libtransmission)
if(ENABLE_UTILS)
add_subdirectory(utils)
endif()