summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 18 insertions, 1 deletions
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})