]> git.stg.codes - stg.git/blob - projects/CMakeLists.txt
Use std::lock_guard instead of STG_LOCKER.
[stg.git] / projects / CMakeLists.txt
1 if ( BUILD_RSCRIPTD )
2     add_subdirectory ( rscriptd )
3 endif ( BUILD_RSCRIPTD )
4
5 if ( BUILD_SGAUTH )
6     add_subdirectory ( sgauth )
7 endif ( BUILD_SGAUTH )
8
9 if ( BUILD_SGCONF )
10     add_subdirectory ( sgconf )
11 endif ( BUILD_SGCONF )
12
13 if ( BUILD_STG )
14     add_subdirectory ( stargazer )
15 endif ( BUILD_STG )
16
17 set ( LIB_DIRS ${CMAKE_SOURCE_DIR}/libs/common
18                ${CMAKE_SOURCE_DIR}/libs/conffiles
19                ${CMAKE_SOURCE_DIR}/libs/crypto
20                ${CMAKE_SOURCE_DIR}/libs/ia
21                ${CMAKE_SOURCE_DIR}/libs/logger
22                ${CMAKE_SOURCE_DIR}/libs/pinger
23                ${CMAKE_SOURCE_DIR}/libs/scriptexecuter
24                ${CMAKE_SOURCE_DIR}/libs/srvconf
25     )
26
27 if (CPPCHECK_FOREIGN)
28     set ( LIB_DIRS ${LIB_DIRS}
29                    ${CMAKE_SOURCE_DIR}/libs/dotconfpp
30                    ${CMAKE_SOURCE_DIR}/libs/ibpp
31                    ${CMAKE_SOURCE_DIR}/libs/smux
32         )
33 endif ()
34
35 add_custom_target (cppcheck COMMAND /usr/bin/cppcheck --enable=all --std=c++17 ${LIB_DIRS} ${CMAKE_SOURCE_DIR}/projects/rscriptd ${CMAKE_SOURCE_DIR}/projects/sgauth ${CMAKE_SOURCE_DIR}/projects/sgconf ${CMAKE_SOURCE_DIR}/projects/stargazer)