1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Use ExternalProject_Add rather than including the gtest directory

This commit is contained in:
Matias Fontanini
2016-02-09 20:35:15 -08:00
parent 64b267c7ea
commit 785ee7b47b
2 changed files with 21 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
INCLUDE_DIRECTORIES(
${PROJECT_SOURCE_DIR}/include/tins/
../include/
${gtest_SOURCE_DIR}/include
${GOOGLETEST_INCLUDE}
${PCAP_INCLUDE_DIR}
)
@@ -10,7 +10,7 @@ INCLUDE_DIRECTORIES(
FIND_PACKAGE(Threads REQUIRED)
LINK_DIRECTORIES(
${gtest_BINARY_DIR}
${GOOGLETEST_LIBRARY}
)
# Link against GoogleTest, libtins and pthread.
# Pthread is required by GoogleTest
@@ -212,4 +212,3 @@ ADD_TEST(TCPStream TCPStreamTest)
ADD_TEST(UDP UDPTest)
ADD_TEST(Utils UtilsTest)
ADD_TEST(WEPDecrypt WEPDecryptTest)