1set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-access-control") 2 3add_executable(io_test io_test.cpp) 4target_link_libraries(io_test ${Boost_LIBRARIES}) 5target_link_libraries(io_test ${CMAKE_THREAD_LIBS_INIT}) 6 7add_executable(parse_test parse_test.cpp) 8target_link_libraries(parse_test ${Boost_LIBRARIES}) 9target_link_libraries(parse_test ${CMAKE_THREAD_LIBS_INIT}) 10 11if(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) 14endif() 15 16add_test(io_test io_test) 17add_test(parse_test parse_test) 18 19if(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) 23endif() 24