]> git.stg.codes - stg.git/blobdiff - sgconf/CMakeLists.txt
Port to CMake, get rid of os_int.h.
[stg.git] / sgconf / CMakeLists.txt
diff --git a/sgconf/CMakeLists.txt b/sgconf/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c2666b8
--- /dev/null
@@ -0,0 +1,12 @@
+find_package ( EXPAT REQUIRED )
+
+set ( CPP_FILES main.cpp options.cpp api_action.cpp actions.cpp admins.cpp tariffs.cpp users.cpp services.cpp corps.cpp info.cpp xml.cpp )
+
+set ( THREADS_PREFER_PTHREAD_FLAG ON )
+find_package ( Threads REQUIRED )
+
+add_executable ( sgconf ${CPP_FILES} )
+
+target_link_libraries ( sgconf srvconf crypto common EXPAT::EXPAT )
+
+# TODO: install