Added MSVC support to cmake files (not tested, but hopefully it works). Some tests are disabled due to lacking MSVC options.
This commit is contained in:
parent
647a733251
commit
5a7c021dab
2 changed files with 15 additions and 9 deletions
|
|
@ -1,12 +1,14 @@
|
|||
add_compile_options(-fno-access-control)
|
||||
if(NOT MSVC)
|
||||
add_compile_options(-fno-access-control)
|
||||
|
||||
add_executable(io_test io_test.cpp)
|
||||
target_link_libraries(io_test simple-web-server)
|
||||
add_test(io_test io_test)
|
||||
|
||||
add_executable(io_test io_test.cpp)
|
||||
target_link_libraries(io_test simple-web-server)
|
||||
add_test(io_test io_test)
|
||||
|
||||
add_executable(parse_test parse_test.cpp)
|
||||
target_link_libraries(parse_test simple-web-server)
|
||||
add_test(parse_test parse_test)
|
||||
add_executable(parse_test parse_test.cpp)
|
||||
target_link_libraries(parse_test simple-web-server)
|
||||
add_test(parse_test parse_test)
|
||||
endif()
|
||||
|
||||
if(OPENSSL_FOUND)
|
||||
add_executable(crypto_test crypto_test.cpp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue