cxxopts/test/CMakeLists.txt
Jarryd Beck 9d16b98edd Support only short option
Fixes #47. Adds support for options that only have a short option.
2017-05-31 17:40:14 +10:00

14 lines
416 B
CMake

if (CXXOPTS_BUILD_TESTS)
add_executable(options_test main.cpp options.cpp)
target_link_libraries(options_test cxxopts)
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()