From cae8b633fc8723bcc35944298335ad48844d2bf0 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Mon, 23 Sep 2024 22:47:28 -0500 Subject: Work on standing up gui. --- CMakeLists.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 060e8db..f611384 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,12 +8,15 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CXX_CPPCHECK "project=build/compile_commands.json;enable=information;force") set(CMAKE_EXPORT_COMPILE_COMMANDS true) +add_library(stb_image SHARED + src/stb_image.cpp) + add_executable(bookmouse src/main.cpp src/archive.cpp src/image.cpp src/fud_mem.cpp - src/stb_image.cpp + src/demo.cpp # src/main_window.cpp # src/bookmouse.cpp ) @@ -22,16 +25,30 @@ include(warnings.cmake) find_package(spdlog REQUIRED) find_package(Fud REQUIRED) +find_package(SDL2 REQUIRED) +find_package(SDL2_image REQUIRED) +find_package(SDL2_ttf REQUIRED) +include(FindPkgConfig) +PKG_SEARCH_MODULE(SDL2_gfx REQUIRED SDL2_gfx) +find_package(OpenGL REQUIRED) target_include_directories(bookmouse PRIVATE ${FUD_INCLUDE_DIR} ${spdlog_INCLUDE_DIR} + ${SDL2_INCLUDE_DIRS} ) target_link_libraries(bookmouse PRIVATE zip spdlog::spdlog fud + stb_image + imgui + ${SDL2_LIBRARIES} + SDL2_image::SDL2_image + SDL2_ttf::SDL2_ttf + SDL2_gfx + OpenGL ) target_compile_options(bookmouse PRIVATE ${BOOKMOUSE_WARNINGS}) -- cgit v1.2.3