]> git.stg.codes - stg.git/blob - sgauth/CMakeLists.txt
Fix sgauth build (css embedding).
[stg.git] / 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
6 file ( READ sgauth.css CSS_DATA )
7 configure_file ( css.h.in css.h ESCAPE_QUOTES @ONLY )
8
9 set ( CMAKE_INCLUDE_CURRENT_DIR ON )
10
11 add_executable ( sgauth ${CPP_FILES} )
12
13 target_link_libraries ( sgauth conffiles ia crypto common Threads::Threads )
14
15 # TODO: install