]> git.stg.codes - stg.git/blob - projects/sgconf/CMakeLists.txt
Fix compilation.
[stg.git] / projects / sgconf / CMakeLists.txt
1 find_package ( EXPAT REQUIRED )
2
3 set ( CPP_FILES main.cpp options.cpp api_action.cpp actions.cpp admins.cpp tariffs.cpp users.cpp services.cpp corps.cpp info.cpp xml.cpp )
4
5 set ( THREADS_PREFER_PTHREAD_FLAG ON )
6 find_package ( Threads REQUIRED )
7
8 add_executable ( sgconf ${CPP_FILES} )
9
10 target_link_libraries ( sgconf srvconf crypto common EXPAT::EXPAT )
11
12 if ( CLANG_TIDY_EXE )
13     set_target_properties ( sgconf PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}" )
14 endif ()
15 if ( INCLUDE_WHAT_YOU_USE_EXE )
16     set_target_properties ( sgconf PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${DO_INCLUDE_WHAT_YOU_USE}" )
17 endif ()
18
19 # TODO: install