X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/4271ab433cd55bbd2612292bcf39e4dc3d7274f1..0907aa4037b12b6b88ee24495d4577a064d4f8db:/projects/sgauth/CMakeLists.txt diff --git a/projects/sgauth/CMakeLists.txt b/projects/sgauth/CMakeLists.txt new file mode 100644 index 00000000..2a87f3f6 --- /dev/null +++ b/projects/sgauth/CMakeLists.txt @@ -0,0 +1,18 @@ +set ( CPP_FILES main.cpp settings_impl.cpp web.cpp ) + +set ( THREADS_PREFER_PTHREAD_FLAG ON ) +find_package ( Threads REQUIRED ) +find_package ( Intl REQUIRED ) + +file ( READ sgauth.css CSS_DATA ) +configure_file ( css.h.in css.h ESCAPE_QUOTES @ONLY ) + +set ( CMAKE_INCLUDE_CURRENT_DIR ON ) + +include_directories ( ${Intl_INCLUDE_DIRS} ) + +add_executable ( sgauth ${CPP_FILES} ) + +target_link_libraries ( sgauth conffiles ia crypto common ${Intl_LIBRARIES} Threads::Threads ) + +# TODO: install