2019-07-31 19:48:50 +00:00
|
|
|
add_executable(example example.cpp)
|
2019-07-31 16:09:26 +00:00
|
|
|
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>
|
|
|
|
)
|