Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux build #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,6 @@ __pycache__/
*.odx.cs
*.xsd.cs
.DS_Store

# CMake output
cmake-build-debug/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "game/src/libs/raylib"]
path = game/src/libs/raylib
url = https://github.com/alexBraidwood/raylib
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.8)
project(ludum-dare-40)

find_package(glfw3 REQUIRED)
find_package(OpenAL REQUIRED)

set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)

add_subdirectory(game/src/libs/raylib)

add_executable(ludum-dare-40 "")
target_link_libraries(ludum-dare-40 PRIVATE raylib)
target_include_directories(ludum-dare-40 PUBLIC game/src/include)
target_sources(ludum-dare-40 PRIVATE
# sources
game/src/collision.c
game/src/levelgen.c
game/src/main.c

# headers
game/src/entity.h
game/src/hashset.h
game/src/item.h
game/src/main.h
game/src/vector2i.h)
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Project uses following libraries:
- Build Script: build-win32.bat

#### Linux/Mac
TODO(nick)
- Compiler: GCC >= 5.0 or Clang >= 3.4
- CMake version >= 3.8
- Building from cloned directory: `mkdir build && cd build && cmake .. && make`

#### Web
- SDK: emcscriptensdk
Expand Down
1 change: 1 addition & 0 deletions game/src/libs/raylib
Submodule raylib added at 401a8f
Loading