@@ -11,19 +11,24 @@ endif (OPENSSL_FOUND)
11
11
add_executable (http_client http_client.cpp )
12
12
add_executable (simple_wget simple_wget.cpp )
13
13
add_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 )
15
17
add_executable (uri uri.cpp )
16
18
add_dependencies (http_client cppnetlib-uri cppnetlib-client-connections )
17
19
add_dependencies (simple_wget cppnetlib-uri cppnetlib-client-connections )
18
20
add_dependencies (uri cppnetlib-uri )
19
21
set (BOOST_CLIENT_LIBS
20
22
${Boost_PROGRAM_OPTIONS_LIBRARY}
21
23
${Boost_THREAD_LIBRARY}
24
+ ${Boost_DATE_TIME_LIBRARY}
25
+ ${Boost_REGEX_LIBRARY}
22
26
${Boost_SYSTEM_LIBRARY} )
23
27
24
28
set (BOOST_SERVER_LIBS
25
29
${Boost_THREAD_LIBRARY}
26
30
${Boost_SYSTEM_LIBRARY}
31
+ ${Boost_DATE_TIME_LIBRARY}
27
32
${Boost_PROGRAM_OPTIONS_LIBRARY} )
28
33
29
34
target_link_libraries (http_client
@@ -48,15 +53,19 @@ if (OPENSSL_FOUND)
48
53
target_link_libraries (hello_world_server ${OPENSSL_LIBRARIES} )
49
54
endif (OPENSSL_FOUND )
50
55
51
- target_link_libraries (fileserver
56
+ if (UNIX )
57
+ target_link_libraries (fileserver
52
58
${BOOST_SERVER_LIBS}
53
59
${Boost_FILESYSTEM_LIBRARY}
54
60
${CMAKE_THREAD_LIBS_INIT}
55
61
cppnetlib-server-parsers )
62
+ endif (UNIX )
56
63
57
64
target_link_libraries (uri cppnetlib-uri )
58
65
set_target_properties (http_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
59
66
set_target_properties (simple_wget PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
60
67
set_target_properties (hello_world_server PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
61
- set_target_properties (fileserver PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
68
+ if (UNIX )
69
+ set_target_properties (fileserver PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
70
+ endif (UNIX )
62
71
set_target_properties (uri PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example )
0 commit comments