]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/CMakeLists.txt
Async lookup attempt #3 - use OpenThreads instead - I'm going to kill off SGThread...
[simgear.git] / simgear / io / CMakeLists.txt
index fe0eb6f1336fb50395260eabbd6821fe2e78fbdb..2cdb1d5a467428adaae35a845c7dcf06ce0e1968 100644 (file)
@@ -37,10 +37,19 @@ set(SOURCES
 simgear_component(io io "${SOURCES}" "${HEADERS}")
 
 add_executable(test_sock socktest.cxx)
-target_link_libraries(test_sock sgio sgstructure sgdebug)
+target_link_libraries(test_sock sgio sgstructure sgdebug ${OPENTHREADS_LIBRARY})
 
 add_executable(test_http test_HTTP.cxx)
 target_link_libraries(test_http 
     sgio sgstructure sgtiming sgmisc sgdebug
-    ${RT_LIBRARY})
+    ${RT_LIBRARY}
+    ${OPENTHREADS_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}
+    ${OPENTHREADS_LIBRARY})
+    
\ No newline at end of file