From da6f83f5fad356470586eeeaf592dae1392082f9 Mon Sep 17 00:00:00 2001 From: Jonekk Date: Thu, 7 Nov 2024 23:05:17 +0100 Subject: [PATCH] Fix linux cmake build --- readme.md | 4 +++- src/client/CMakeLists.txt | 2 ++ src/framework/CMakeLists.txt | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b1c9f153..17924a2c 100644 --- a/readme.md +++ b/readme.md @@ -28,7 +28,9 @@ on linux you need: - boost >=1.67 and libzip-dev, physfs >= 3 - gcc >=9 -Then just run mkdir build && cd build && cmake .. && make -j8 +Then just run mkdir build && cd build && cmake .. -DUSE_STATIC_LIBS=OFF && make -j8 + +NOTICE: project comes with USE_STATIC_LIBS=ON set while libzip-dev is supplied with dynamic library only, so for linux build it is required to override USE_STATIC_LIBS to OFF ### Android diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index ad7aa1bc..ba950f2b 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -83,6 +83,8 @@ set(client_SOURCES ${client_SOURCES} ${CMAKE_CURRENT_LIST_DIR}/uiitem.h ${CMAKE_CURRENT_LIST_DIR}/uigraph.cpp ${CMAKE_CURRENT_LIST_DIR}/uigraph.h + ${CMAKE_CURRENT_LIST_DIR}/uigrid.cpp + ${CMAKE_CURRENT_LIST_DIR}/uigrid.h ${CMAKE_CURRENT_LIST_DIR}/uimap.cpp ${CMAKE_CURRENT_LIST_DIR}/uimap.h ${CMAKE_CURRENT_LIST_DIR}/uiminimap.cpp diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt index 47a03b53..0d6897fe 100644 --- a/src/framework/CMakeLists.txt +++ b/src/framework/CMakeLists.txt @@ -453,6 +453,8 @@ if(FRAMEWORK_GRAPHICS) ${CMAKE_CURRENT_LIST_DIR}/ui/uianchorlayout.h ${CMAKE_CURRENT_LIST_DIR}/ui/uiboxlayout.cpp ${CMAKE_CURRENT_LIST_DIR}/ui/uiboxlayout.h + ${CMAKE_CURRENT_LIST_DIR}/ui/uiflexbox.cpp + ${CMAKE_CURRENT_LIST_DIR}/ui/uiflexbox.h ${CMAKE_CURRENT_LIST_DIR}/ui/uigridlayout.cpp ${CMAKE_CURRENT_LIST_DIR}/ui/uigridlayout.h ${CMAKE_CURRENT_LIST_DIR}/ui/uihorizontallayout.cpp