]> git.stg.codes - stg.git/blobdiff - libs/CMakeLists.txt
Cryptography with void* in the interfaces.
[stg.git] / libs / CMakeLists.txt
index 59caf2f15fa3f435d26004159faf3a0a2f9ed0c1..7d9713156a6e146f3dd214fca539a8e8847319a5 100644 (file)
@@ -28,17 +28,11 @@ if ( BUILD_LIB_IA )
     target_link_libraries ( ia crypto common )
 endif ( BUILD_LIB_IA )
 
-if ( BUILD_LIB_IBPP )
-    add_library ( ibpp STATIC ibpp/all_in_one.cpp )
-    target_include_directories ( ibpp PUBLIC ibpp/include )
-endif ( BUILD_LIB_IBPP )
-
-if ( BUILD_LIB_JSON )
-    find_package ( YAJL REQUIRED )
-    add_library ( json STATIC json/generator.cpp json/parser.cpp )
-    target_include_directories ( json PUBLIC json/include )
-    target_link_libraries ( json common YAJL::YAJL )
-endif ( BUILD_LIB_JSON )
+#if ( BUILD_LIB_IBPP )
+#    add_library ( ibpp STATIC ibpp/all_in_one.cpp )
+#    target_include_directories ( ibpp PUBLIC ibpp/include )
+#    target_compile_options ( ibpp PRIVATE -Wno-old-style-cast $<$<CXX_COMPILER_ID:GNU>:-Wno-useless-cast> )
+#endif ( BUILD_LIB_IBPP )
 
 if ( BUILD_LIB_LOGGER )
     add_library ( logger STATIC logger/logger.cpp )
@@ -60,11 +54,13 @@ if ( BUILD_LIB_SMUX )
     file ( GLOB SMUX_C_FILES smux/*.c )
     add_library ( smux STATIC ${SMUX_C_FILES} )
     target_include_directories ( smux PUBLIC smux/include smux/include/stg )
+    target_compile_options ( smux PRIVATE -Wno-cpp )
 endif ( BUILD_LIB_SMUX )
 
 if ( BUILD_LIB_SRVCONF )
+    find_package ( EXPAT REQUIRED )
     file ( GLOB PARSERS srvconf/parsers/*.cpp )
     add_library ( srvconf STATIC srvconf/servconf.cpp srvconf/netunit.cpp ${PARSERS} )
     target_include_directories ( srvconf PUBLIC srvconf/include )
-    target_link_libraries ( srvconf crypto common )
+    target_link_libraries ( srvconf crypto common EXPAT::EXPAT )
 endif ( BUILD_LIB_SRVCONF )