enable all warnings and Werror
This commit is contained in:
parent
4abb115ca2
commit
2c2dd84bff
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,6 +2,7 @@
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
out/
|
out/
|
||||||
|
build/
|
||||||
*.json
|
*.json
|
||||||
|
|
||||||
*.nes
|
*.nes
|
||||||
|
|
|
@ -33,6 +33,12 @@ target_link_libraries(nesemu
|
||||||
${CMAKE_DL_LIBS}
|
${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
|
add_custom_command(TARGET nesemu POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/roms $<TARGET_FILE_DIR:nesemu>/roms
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/roms $<TARGET_FILE_DIR:nesemu>/roms
|
||||||
)
|
)
|
Loading…
Reference in a new issue