42 lines
730 B
CMake
42 lines
730 B
CMake
include(app/editor/CMakeLists.txt)
|
|
include(app/zelda3/CMakeLists.txt)
|
|
|
|
add_executable(
|
|
yaze
|
|
app/yaze.cc
|
|
app/rom.cc
|
|
${YAZE_APP_EMU_SRC}
|
|
${YAZE_APP_CORE_SRC}
|
|
${YAZE_APP_EDITOR_SRC}
|
|
${YAZE_APP_GFX_SRC}
|
|
${YAZE_APP_ZELDA3_SRC}
|
|
${YAZE_GUI_SRC}
|
|
${IMGUI_SRC}
|
|
${IMGUI_TEST_ENGINE_SOURCES}
|
|
)
|
|
|
|
target_include_directories(
|
|
yaze PUBLIC
|
|
lib/
|
|
app/
|
|
${ASAR_INCLUDE_DIR}
|
|
${CMAKE_SOURCE_DIR}/src/
|
|
${CMAKE_SOURCE_DIR}/src/lib/imgui_test_engine
|
|
${PNG_INCLUDE_DIRS}
|
|
${SDL2_INCLUDE_DIR}
|
|
)
|
|
|
|
target_link_libraries(
|
|
yaze PUBLIC
|
|
asar-static
|
|
${ABSL_TARGETS}
|
|
${SDL_TARGETS}
|
|
${PNG_LIBRARIES}
|
|
${CMAKE_DL_LIBS}
|
|
ImGuiTestEngine
|
|
ImGui
|
|
)
|
|
|
|
if (APPLE)
|
|
target_link_libraries(yaze PUBLIC ${COCOA_LIBRARY})
|
|
endif() |