]> git.stg.codes - stg.git/blob - projects/stargazer/CMakeLists.txt
Remove extra debug.
[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                 store_loader.cpp
16                 traffcounter_impl.cpp
17                 user_property.cpp )
18
19 set ( THREADS_PREFER_PTHREAD_FLAG ON )
20 find_package ( Threads REQUIRED )
21
22 add_executable ( stargazer ${CPP_FILES} )
23
24 target_link_libraries ( stargazer scriptexecuter dotconfpp logger common Threads::Threads ${CMAKE_DL_LIBS} )
25
26 if ( CLANG_TIDY_EXE )
27     set_target_properties ( stargazer PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}" )
28 endif ()
29 if ( INCLUDE_WHAT_YOU_USE_EXE )
30     set_target_properties ( stargazer PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${DO_INCLUDE_WHAT_YOU_USE}" )
31 endif ()
32
33 add_subdirectory ( plugins )
34
35 # TODO: install