Devendor SDL2
First try to find system-installed SDL2. Fallback to (hopefully) checked-out submodule. Also disabled shared library build of vendored SDL2.
This commit is contained in:
parent
306516394b
commit
2f140fee07
2 changed files with 14 additions and 4 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
add_executable (nesemu "main.c" "cpu.h" "types.h" "bus.h" "bus.c" "cartridge.h" "cpu.c" "cartridge.c" "opcodes.c" "log.c" "ppu.h" "ppu.c" "mapper.h" "mappers/mapper000.h" "mappers/mapper000.c" "mapper.c")
|
||||
|
||||
target_include_directories(nesemu PUBLIC SDL2-static)
|
||||
target_link_libraries(nesemu PUBLIC SDL2-static SDL2main)
|
||||
target_include_directories(nesemu PUBLIC ${SDL2_INCLUDE_DIRS})
|
||||
target_link_libraries(nesemu PUBLIC ${SDL2_LIBRARIES})
|
||||
|
||||
if(MSVC)
|
||||
target_compile_definitions(nesemu PUBLIC _CRT_SECURE_NO_WARNINGS)
|
||||
|
@ -11,4 +11,4 @@ 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