Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
submodules: recursive
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev -y
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev

- name: Configure
run: cmake -B build -S . -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic" ${{ matrix.platform.flags }} ${{ matrix.type.flags }} ${{ matrix.config.flags }}
Expand Down
86 changes: 45 additions & 41 deletions include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,49 +1,53 @@
add_library(raylib_cpp INTERFACE)

set(RAYLIB_CPP_HEADERS
AudioDevice.hpp
AudioStream.hpp
AutomationEventList.hpp
BoundingBox.hpp
Camera2D.hpp
Camera3D.hpp
Color.hpp
Font.hpp
Functions.hpp
Gamepad.hpp
Image.hpp
Keyboard.hpp
Material.hpp
Matrix.hpp
Mesh.hpp
Model.hpp
ModelAnimation.hpp
Mouse.hpp
Music.hpp
Ray.hpp
RayCollision.hpp
RaylibException.hpp
raylib-cpp-utils.hpp
raylib-cpp.hpp
raylib.hpp
raymath.hpp
Rectangle.hpp
RenderTexture.hpp
Shader.hpp
Sound.hpp
Text.hpp
Texture.hpp
TextureUnmanaged.hpp
Touch.hpp
Vector2.hpp
Vector3.hpp
Vector4.hpp
VrStereoConfig.hpp
Wave.hpp
Window.hpp
)

# Include Directory
target_include_directories(raylib_cpp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/)

# Set the header files as install files.
install(FILES
AudioDevice.hpp
AudioStream.hpp
AutomationEventList.hpp
BoundingBox.hpp
Camera2D.hpp
Camera3D.hpp
Color.hpp
Font.hpp
Functions.hpp
Gamepad.hpp
Image.hpp
Keyboard.hpp
Material.hpp
Matrix.hpp
Mesh.hpp
Model.hpp
ModelAnimation.hpp
Mouse.hpp
Music.hpp
Ray.hpp
RayCollision.hpp
RaylibException.hpp
raylib-cpp-utils.hpp
raylib-cpp.hpp
raylib.hpp
raymath.hpp
Rectangle.hpp
RenderTexture.hpp
Shader.hpp
Sound.hpp
Text.hpp
Texture.hpp
TextureUnmanaged.hpp
Touch.hpp
Vector2.hpp
Vector3.hpp
Vector4.hpp
VrStereoConfig.hpp
Wave.hpp
Window.hpp
DESTINATION include
${RAYLIB_CPP_HEADERS}
DESTINATION include
)