]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/CMakeLists.txt
Revert "Support non-blocking address lookups, and switch to getaddrinfo over gethostb...
[simgear.git] / simgear / io / CMakeLists.txt
index e00b6945c2d230a3aa2236f44d8464868434f717..a2638e1bee9ef61a42051cef156a9f8e620fbc6f 100644 (file)
@@ -14,6 +14,8 @@ set(HEADERS
     sg_serial.hxx
     sg_socket.hxx
     sg_socket_udp.hxx
+    HTTPClient.hxx
+    HTTPRequest.hxx
     )
 
 set(SOURCES 
@@ -28,6 +30,24 @@ set(SOURCES
     sg_serial.cxx
     sg_socket.cxx
     sg_socket_udp.cxx
+    HTTPClient.cxx
+    HTTPRequest.cxx
     )
 
-simgear_component(io io "${SOURCES}" "${HEADERS}")
\ No newline at end of file
+simgear_component(io io "${SOURCES}" "${HEADERS}")
+
+add_executable(test_sock socktest.cxx)
+target_link_libraries(test_sock sgio sgstructure sgdebug)
+
+add_executable(test_http test_HTTP.cxx)
+target_link_libraries(test_http 
+    sgio sgstructure sgtiming sgmisc sgdebug
+    ${RT_LIBRARY})
+
+add_test(http ${EXECUTABLE_OUTPUT_PATH}/test_http)
+
+add_executable(httpget httpget.cxx)
+target_link_libraries(httpget 
+    sgio sgstructure sgtiming sgmisc sgdebug
+    ${RT_LIBRARY})
+    
\ No newline at end of file