]> git.stg.codes - stg.git/blobdiff - tests/CMakeLists.txt
Port to CMake, get rid of os_int.h.
[stg.git] / tests / CMakeLists.txt
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644 (file)
index 0000000..30286d2
--- /dev/null
@@ -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 )