2016-08-26 01:22:04 +03:00
|
|
|
if (CXXOPTS_BUILD_TESTS)
|
|
|
|
|
add_executable(options_test options.cpp)
|
2016-12-02 23:44:46 +03:00
|
|
|
target_link_libraries(options_test cxxopts)
|
2016-11-30 10:03:28 +03:00
|
|
|
|
2016-08-26 01:22:04 +03:00
|
|
|
if (MSVC)
|
|
|
|
|
target_compile_options(options_test PUBLIC /W2)
|
|
|
|
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "[Cc]lang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
|
|
|
target_compile_options(options_test PUBLIC -std=c++11 -Wall)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_test(options options_test)
|
|
|
|
|
endif()
|
2016-08-25 01:49:56 +03:00
|
|
|
|