]> git.stg.codes - stg.git/blob - projects/sgauth/CMakeLists.txt
2a87f3f6d780ec916ce36563f701b714279e2f6b
[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 # TODO: install