Skip to content

Commit

Permalink
Fix linux cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonekk committed Nov 7, 2024
1 parent 3722e1a commit da6f83f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da6f83f

Please sign in to comment.