]> git.stg.codes - stg.git/blob - tests/CMakeLists.txt
226b9b22d0296869bdf0c4a2ef2bd5be963431f2
[stg.git] / tests / CMakeLists.txt
1 set ( CPP_FILES main.cpp
2                 test_raw_ip.cpp
3                 test_admin_conf.cpp
4                 test_tariff.cpp
5                 test_conffiles.cpp
6                 test_fee_charge_rules.cpp
7                 test_reconnect_on_tariff_change.cpp
8                 test_disable_session_log.cpp
9                 test_filter_params_log.cpp
10                 test_crypto.cpp
11                 test_bfstream.cpp
12                 ../projects/stargazer/tariff_impl.cpp
13                 ../projects/stargazer/user_impl.cpp
14                 ../projects/stargazer/user_property.cpp )
15
16 set ( THREADS_PREFER_PTHREAD_FLAG ON )
17 find_package ( Threads REQUIRED )
18
19 add_definitions ( -DUSE_ABSTRACT_SETTINGS )
20
21 add_executable ( tests ${CPP_FILES} )
22
23 target_link_libraries ( tests conffiles crypto logger scriptexecuter common Threads::Threads )
24
25 target_include_directories ( tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ../projects/stargazer )