]> git.stg.codes - stg.git/blob - projects/sgauth/CMakeLists.txt
Fix Boost package name.
[stg.git] / projects / sgauth / CMakeLists.txt
1 set ( CPP_FILES main.cpp settings_impl.cpp web.cpp )
2
3 set ( THREADS_PREFER_PTHREAD_FLAG ON )
4 find_package ( Threads REQUIRED )
5 find_package ( Intl REQUIRED )
6
7 file ( READ sgauth.css CSS_DATA )
8 configure_file ( css.h.in css.h ESCAPE_QUOTES @ONLY )
9
10 set ( CMAKE_INCLUDE_CURRENT_DIR ON )
11
12 include_directories ( ${Intl_INCLUDE_DIRS} )
13
14 add_executable ( sgauth ${CPP_FILES} )
15
16 target_link_libraries ( sgauth conffiles ia crypto common ${Intl_LIBRARIES} Threads::Threads )
17
18 if ( CLANG_TIDY_EXE )
19     set_target_properties ( sgauth PROPERTIES CXX_CLANG_TIDY "${DO_CLANG_TIDY}" )
20 endif ()
21 if ( INCLUDE_WHAT_YOU_USE_EXE )
22     set_target_properties ( sgauth PROPERTIES CXX_INCLUDE_WHAT_YOU_USE "${DO_INCLUDE_WHAT_YOU_USE}" )
23 endif ()
24
25 # TODO: install