]> git.stg.codes - stg.git/blob - tests/CMakeLists.txt
30286d2e717c522adafaba7752808f2d6b95ad17
[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                 ../stargazer/tariff_impl.cpp
13                 ../stargazer/user_impl.cpp
14                 ../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} ../stargazer )