From 6f2b61b676a16482fdac70a58a8e875c4d68e713 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 30 Sep 2024 00:36:19 -0500 Subject: Add configuration handling. --- CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c609098..175aa56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,24 +17,30 @@ qt_add_executable(getsuyomi src/archive.cpp src/getsuyomi.cpp src/fud_mem.cpp + src/config.cpp + src/luacxx.cpp ) include(warnings.cmake) target_compile_options(getsuyomi PRIVATE ${GETSUYOMI_WARNINGS}) find_package(Fud REQUIRED) -# find_dependency(minizip-ng REQUIRED) +find_package(Lua REQUIRED) +find_package(libzip REQUIRED) target_include_directories(getsuyomi PRIVATE - # libzip + ${libzip_INCLUDE_DIR} ${FUD_INCLUDE_DIR} - ${SDL2_INCLUDE_DIRS} + ${LUA_INCLUDE_DIR} ) +# message(FATAL_ERROR "WHAT ${LUA_LIBRARIES}") + target_link_libraries(getsuyomi PRIVATE Qt6::Widgets - zip + libzip::zip fud) +target_link_libraries(getsuyomi PRIVATE "${LUA_LIBRARIES}") set_target_properties( getsuyomi PROPERTIES @@ -48,3 +54,5 @@ set_target_properties( # WIN32_EXECUTABLE ON # MACOSX_BUNDLE ON #) + +add_subdirectory(resources) -- cgit v1.2.3