nameof_module/example/CMakeLists.txt
neargye cb08b67e9d clean-up cmake:
* formating
* remove set(CMAKE_VERBOSE_MAKEFILE
* use function to simplify test
2019-08-01 00:53:53 +05:00

11 lines
381 B
CMake

add_executable(example example.cpp)
target_link_libraries(example PRIVATE nameof::nameof)
set_target_properties(example PROPERTIES CXX_EXTENSIONS OFF)
target_compile_options(example
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-Wall -Wextra -pedantic-errors -Werror>
$<$<CXX_COMPILER_ID:MSVC>:
/W4 /WX>
)