X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8c6fa3fbaccc22127280bf77a48fab5a3ee0716e..46b0747592074017ff0ea4b33d4a7194235886e5:/tests/CMakeLists.txt diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 00000000..30286d2e --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,25 @@ +set ( CPP_FILES main.cpp + test_raw_ip.cpp + test_admin_conf.cpp + test_tariff.cpp + test_conffiles.cpp + test_fee_charge_rules.cpp + test_reconnect_on_tariff_change.cpp + test_disable_session_log.cpp + test_filter_params_log.cpp + test_crypto.cpp + test_bfstream.cpp + ../stargazer/tariff_impl.cpp + ../stargazer/user_impl.cpp + ../stargazer/user_property.cpp ) + +set ( THREADS_PREFER_PTHREAD_FLAG ON ) +find_package ( Threads REQUIRED ) + +add_definitions ( -DUSE_ABSTRACT_SETTINGS ) + +add_executable ( tests ${CPP_FILES} ) + +target_link_libraries ( tests conffiles crypto logger scriptexecuter common Threads::Threads ) + +target_include_directories ( tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ../stargazer )