Skip to content

Commit

Permalink
Improve CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
kenneth-jia committed Apr 19, 2021
1 parent 52f5f67 commit 9e7d107
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif ()
message(STATUS "librdkafka root directory: ${LIBRDKAFKA_ROOT}")

include_directories(SYSTEM ${LIBRDKAFKA_ROOT}/include)
link_directories(SYSTEM ${LIBRDKAFKA_ROOT}/lib)
link_directories(${LIBRDKAFKA_ROOT}/lib)


#---------------------------
Expand Down
4 changes: 1 addition & 3 deletions tests/integration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
project("kafka-integration-test")

# Directories
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})

include_directories(SYSTEM ${GTEST_ROOT}/include)
link_directories(SYSTEM ${GTEST_ROOT}/lib)
link_directories(${GTEST_ROOT}/lib)

# Target
file(GLOB TEST_SRCS *.cc)
Expand Down
4 changes: 1 addition & 3 deletions tests/robustness/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
project("kafka-robustness-test")

# Directories
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})

include_directories(SYSTEM ${GTEST_ROOT}/include)
link_directories(SYSTEM ${GTEST_ROOT}/lib)
link_directories(${GTEST_ROOT}/lib)

# Target
file(GLOB TEST_SRCS *.cc)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project("kafka-unit-test")

# Directories
include_directories(SYSTEM ${GTEST_ROOT}/include)
link_directories(SYSTEM ${GTEST_ROOT}/lib)
link_directories(${GTEST_ROOT}/lib)

# Target
file(GLOB TEST_SRCS *.cc)
Expand Down

0 comments on commit 9e7d107

Please sign in to comment.