Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / third_party / ot-br-posix / repo / third_party / Simple-web-server / repo / tests / CMakeLists.txt
1 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-access-control")
2
3 add_executable(io_test io_test.cpp)
4 target_link_libraries(io_test ${Boost_LIBRARIES})
5 target_link_libraries(io_test ${CMAKE_THREAD_LIBS_INIT})
6
7 add_executable(parse_test parse_test.cpp)
8 target_link_libraries(parse_test ${Boost_LIBRARIES})
9 target_link_libraries(parse_test ${CMAKE_THREAD_LIBS_INIT})
10
11 if(MSYS) #TODO: Is MSYS true when MSVC is true?
12     target_link_libraries(io_test ws2_32 wsock32)
13     target_link_libraries(parse_test ws2_32 wsock32)
14 endif()
15
16 add_test(io_test io_test)
17 add_test(parse_test parse_test)
18
19 if(OPENSSL_FOUND)
20     add_executable(crypto_test crypto_test.cpp)
21     target_link_libraries(crypto_test ${OPENSSL_CRYPTO_LIBRARY})
22     add_test(crypto_test crypto_test)
23 endif()