]> git.stg.codes - stg.git/blob - projects/stargazer/CMakeLists.txt
1670de26cbb1c82c3ff93ec419d1d1e4075286d0
[stg.git] / projects / stargazer / CMakeLists.txt
1 set ( CPP_FILES main.cpp
2                 admins_impl.cpp
3                 users_impl.cpp
4                 tariffs_impl.cpp
5                 corps_impl.cpp
6                 services_impl.cpp
7                 user_impl.cpp
8                 tariff_impl.cpp
9                 eventloop.cpp
10                 pidfile.cpp
11                 plugin_runner.cpp
12                 plugin_mgr.cpp
13                 settings_impl.cpp
14                 stg_timer.cpp
15                 timer_impl.cpp
16                 store_loader.cpp
17                 traffcounter_impl.cpp
18                 user_property.cpp )
19
20 set ( THREADS_PREFER_PTHREAD_FLAG ON )
21 find_package ( Threads REQUIRED )
22
23 add_executable ( stargazer ${CPP_FILES} )
24
25 target_link_libraries ( stargazer scriptexecuter dotconfpp logger common Threads::Threads ${CMAKE_DL_LIBS} )
26
27 add_subdirectory ( plugins )
28
29 # TODO: install