Skip to content

Commit

Permalink
fix unittest dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
761417898 committed Jun 29, 2024
1 parent 38c80fd commit 37cf01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ configure_file(
"${PROJECT_BINARY_DIR}/cmake_config.h"
)

add_subdirectory(test)
add_subdirectory(test)
add_dependencies(TsFile_Test tsfile)
6 changes: 1 addition & 5 deletions cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ FetchContent_MakeAvailable(googletest)

set(SDK_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/../src)
message("SDK_INCLUDE_DIR: ${SDK_INCLUDE_DIR}")
set(SDK_LIB_DIR_RELEASE ${PROJECT_BINARY_DIR}/../lib)
message("SDK_LIB_DIR_RELEASE: ${SDK_LIB_DIR_RELEASE}")

find_library(TSFILE_LIB tsfile ${SDK_LIB_DIR_RELEASE})

include_directories(${SDK_INCLUDE_DIR})

Expand All @@ -48,7 +44,7 @@ target_link_libraries(
TsFile_Test
GTest::gtest_main
GTest::gmock
${TSFILE_LIB}
tsfile
)

include(GoogleTest)
Expand Down

0 comments on commit 37cf01a

Please sign in to comment.