Skip to content

Commit

Permalink
st-2361 [*] connan2 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
thucpham committed Oct 26, 2023
1 parent 90f76b6 commit ef8e1eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(FuzzyMatch)

cmake_minimum_required(VERSION 3.5.1)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

if(TARGET OpenNMTTokenizer)
Expand Down
2 changes: 1 addition & 1 deletion cli/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ target_include_directories(${PROJECT_NAME} PUBLIC

target_link_libraries(${PROJECT_NAME}-cli
${PROJECT_NAME}
${Boost_LIBRARIES}
Boost::program_options
)
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ target_include_directories(${PROJECT_NAME} PUBLIC
target_link_libraries(${PROJECT_NAME}
${OPENNMT_TOKENIZER_LIB}
${ICU_LIBRARIES}
${Boost_LIBRARIES}
Boost::serialization
Boost::iostreams
Boost::system
Threads::Threads
)
7 changes: 4 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ add_executable(${PROJECT_NAME}-test test.cc)

find_package(GTest REQUIRED)

find_package(Boost COMPONENTS filesystem REQUIRED)
find_package(Boost COMPONENTS filesystem system serialization REQUIRED)

include_directories(
${source_dir}/include
Expand All @@ -17,8 +17,9 @@ target_include_directories(${PROJECT_NAME}-test PUBLIC
target_link_libraries(${PROJECT_NAME}-test
${PROJECT_NAME}
GTest::GTest GTest::Main
${Boost_FILESYSTEM_LIBRARY}
${GTEST_LIBRARIES}
Boost::filesystem
Boost::serialization
Boost::system
)

set(${PROJECT_NAME}-test-args "${CMAKE_CURRENT_LIST_DIR}/data/")
Expand Down

0 comments on commit ef8e1eb

Please sign in to comment.