X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FCMakeLists.txt;h=01560b39a01e431be9e8970feb8ca87cc1ad1bd2;hb=086a30e61aa153008bd403c79cd1bff3ad594179;hp=1f2ee11dbf94add81e05fc41a14e7f6c8fbe98eb;hpb=878b504f8e044bc0e59903caa8641492421b76d8;p=simgear.git diff --git a/simgear/io/CMakeLists.txt b/simgear/io/CMakeLists.txt index 1f2ee11d..01560b39 100644 --- a/simgear/io/CMakeLists.txt +++ b/simgear/io/CMakeLists.txt @@ -2,7 +2,7 @@ include (SimGearComponent) -set(HEADERS +set(HEADERS iochannel.hxx lowlevel.hxx raw_socket.hxx @@ -18,7 +18,7 @@ set(HEADERS HTTPRequest.hxx ) -set(SOURCES +set(SOURCES iochannel.cxx lowlevel.cxx raw_socket.cxx @@ -32,24 +32,37 @@ set(SOURCES sg_socket_udp.cxx HTTPClient.cxx HTTPRequest.cxx - HostLookup.cxx - HostLookup.hxx ) simgear_component(io io "${SOURCES}" "${HEADERS}") add_executable(test_sock socktest.cxx) -target_link_libraries(test_sock sgio sgstructure sgdebug sgthreads) +target_link_libraries(test_sock sgio sgstructure sgthreads sgdebug + ${CMAKE_THREAD_LIBS_INIT} + ${WINSOCK_LIBRARY} + ${RT_LIBRARY}) add_executable(test_http test_HTTP.cxx) -target_link_libraries(test_http - sgio sgstructure sgtiming sgmisc sgdebug sgthreads +target_link_libraries(test_http + sgio sgstructure sgthreads sgtiming sgmisc sgdebug + ${CMAKE_THREAD_LIBS_INIT} + ${WINSOCK_LIBRARY} ${RT_LIBRARY}) add_test(http ${EXECUTABLE_OUTPUT_PATH}/test_http) add_executable(httpget httpget.cxx) -target_link_libraries(httpget - sgio sgstructure sgtiming sgmisc sgdebug sgthreads +target_link_libraries(httpget + sgio sgstructure sgthreads sgtiming sgmisc sgdebug + ${CMAKE_THREAD_LIBS_INIT} + ${WINSOCK_LIBRARY} + ${RT_LIBRARY}) + +add_executable(decode_binobj decode_binobj.cxx) +target_link_libraries(decode_binobj + sgio sgbucket sgstructure sgthreads sgtiming sgmisc sgdebug + ${CMAKE_THREAD_LIBS_INIT} + ${WINSOCK_LIBRARY} + ${ZLIB_LIBRARY} ${RT_LIBRARY}) - \ No newline at end of file + \ No newline at end of file