From fc64e0f7fdd47e5c376929370a4d826c7e201c21 Mon Sep 17 00:00:00 2001 From: Peter Oschwald Date: Tue, 12 Sep 2023 15:23:18 -0500 Subject: [PATCH] Add Boost::program_options to target_link_libraries for trx_generator_tests as well. Move include from hpp into cpp. Remove find_package. --- tests/trx_generator/CMakeLists.txt | 4 +--- tests/trx_generator/trx_generator.cpp | 1 + tests/trx_generator/trx_generator.hpp | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/trx_generator/CMakeLists.txt b/tests/trx_generator/CMakeLists.txt index 7c32d74cf1..d1946a156b 100644 --- a/tests/trx_generator/CMakeLists.txt +++ b/tests/trx_generator/CMakeLists.txt @@ -1,5 +1,3 @@ -find_package(Boost 1.67 REQUIRED COMPONENTS program_options) - add_executable(trx_generator main.cpp trx_generator.cpp trx_provider.cpp) target_include_directories(trx_generator PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) @@ -7,6 +5,6 @@ target_include_directories(trx_generator PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CM target_link_libraries(trx_generator PRIVATE eosio_chain fc Boost::program_options ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS}) add_executable(trx_generator_tests trx_generator_tests.cpp trx_provider.cpp trx_generator.cpp) -target_link_libraries(trx_generator_tests PRIVATE eosio_chain fc ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS}) +target_link_libraries(trx_generator_tests PRIVATE eosio_chain fc Boost::program_options ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS}) target_include_directories(trx_generator_tests PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) add_test(trx_generator_tests trx_generator_tests) diff --git a/tests/trx_generator/trx_generator.cpp b/tests/trx_generator/trx_generator.cpp index a78a223b0e..f3c57082ca 100644 --- a/tests/trx_generator/trx_generator.cpp +++ b/tests/trx_generator/trx_generator.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include diff --git a/tests/trx_generator/trx_generator.hpp b/tests/trx_generator/trx_generator.hpp index 1112444777..83736cd83b 100644 --- a/tests/trx_generator/trx_generator.hpp +++ b/tests/trx_generator/trx_generator.hpp @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include