Add project files.
This commit is contained in:
parent
d40149497b
commit
54d6fc8c1e
33 changed files with 50685 additions and 0 deletions
26
src/CMakeLists.txt
Normal file
26
src/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
file(GLOB_RECURSE IMGUI_SRC
|
||||
"${CMAKE_SOURCE_DIR}/vendor/imgui/src/*.cpp"
|
||||
)
|
||||
|
||||
add_executable(yabgbe)
|
||||
target_sources(yabgbe
|
||||
PRIVATE
|
||||
"main.cpp" "bus.cpp" "cpu.cpp" "rom.cpp" "lcd.cpp"
|
||||
${IMGUI_SRC}
|
||||
PUBLIC
|
||||
${HEADER_FILES}
|
||||
)
|
||||
|
||||
target_include_directories(yabgbe
|
||||
PUBLIC
|
||||
"${CMAKE_SOURCE_DIR}/include"
|
||||
"${CMAKE_SOURCE_DIR}/vendor/imgui/include"
|
||||
SDL2::SDL2 glad::glad
|
||||
)
|
||||
|
||||
target_link_libraries(yabgbe
|
||||
SDL2::SDL2 SDL2::SDL2main
|
||||
glad::glad
|
||||
)
|
||||
|
||||
target_compile_options(yabgbe PRIVATE -Wimplicit-fallthrough)
|
Loading…
Add table
Add a link
Reference in a new issue