enable all warnings and Werror
This commit is contained in:
parent
4abb115ca2
commit
2c2dd84bff
2 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,12 @@ target_link_libraries(nesemu
|
|||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
target_compile_options(nesemu PRIVATE "/W4" "/WX")
|
||||
else()
|
||||
target_compile_options(nesemu PRIVATE "-Wall" "-Werror")
|
||||
endif()
|
||||
|
||||
add_custom_command(TARGET nesemu POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/roms $<TARGET_FILE_DIR:nesemu>/roms
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue