]> git.stg.codes - stg.git/blob - projects/stargazer/CMakeLists.txt
Add async pool (to replace EVENT_LOOP).
[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                 async_pool.cpp
11                 pidfile.cpp
12                 plugin_runner.cpp
13                 plugin_mgr.cpp
14                 settings_impl.cpp
15                 stg_timer.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 if ( CLANG_TIDY_EXE )
28     set_target_properties ( stargazer PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}" )
29 endif ()
30 if ( INCLUDE_WHAT_YOU_USE_EXE )
31     set_target_properties ( stargazer PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${DO_INCLUDE_WHAT_YOU_USE}" )
32 endif ()
33
34 add_subdirectory ( plugins )
35
36 # TODO: install