@@ -11,19 +11,24 @@ endif (OPENSSL_FOUND)
1111add_executable (http_client http_client.cpp)
1212add_executable (simple_wget simple_wget.cpp)
1313add_executable (hello_world_server http/hello_world_server.cpp)
14- add_executable (fileserver http/fileserver.cpp)
14+ if (UNIX )
15+ add_executable (fileserver http/fileserver.cpp)
16+ endif (UNIX )
1517add_executable (uri uri.cpp)
1618add_dependencies (http_client cppnetlib-uri cppnetlib-client-connections)
1719add_dependencies (simple_wget cppnetlib-uri cppnetlib-client-connections)
1820add_dependencies (uri cppnetlib-uri)
1921set (BOOST_CLIENT_LIBS
2022${Boost_PROGRAM_OPTIONS_LIBRARY}
2123${Boost_THREAD_LIBRARY}
24+ ${Boost_DATE_TIME_LIBRARY}
25+ ${Boost_REGEX_LIBRARY}
2226${Boost_SYSTEM_LIBRARY} )
2327
2428set (BOOST_SERVER_LIBS
2529${Boost_THREAD_LIBRARY}
2630${Boost_SYSTEM_LIBRARY}
31+ ${Boost_DATE_TIME_LIBRARY}
2732${Boost_PROGRAM_OPTIONS_LIBRARY} )
2833
2934target_link_libraries (http_client
@@ -48,15 +53,19 @@ if (OPENSSL_FOUND)
4853 target_link_libraries (hello_world_server${OPENSSL_LIBRARIES} )
4954endif (OPENSSL_FOUND)
5055
51- target_link_libraries (fileserver
56+ if (UNIX )
57+ target_link_libraries (fileserver
5258${BOOST_SERVER_LIBS}
5359${Boost_FILESYSTEM_LIBRARY}
5460${CMAKE_THREAD_LIBS_INIT}
5561 cppnetlib-server-parsers)
62+ endif (UNIX )
5663
5764target_link_libraries (uri cppnetlib-uri)
5865set_target_properties (http_client PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
5966set_target_properties (simple_wget PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
6067set_target_properties (hello_world_server PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
61- set_target_properties (fileserver PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
68+ if (UNIX )
69+ set_target_properties (fileserver PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)
70+ endif (UNIX )
6271set_target_properties (uri PROPERTIESRUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR }/example)