Skip to content

Commit 0d46340

Browse files
committed
v4.0.4
1 parent f8ead1f commit 0d46340

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [4.0.4] - 2022-01-09
8+
### Fixed
9+
- Renamed CMake project name to `raylib_cpp`
10+
711
## [4.0.3] - 2022-01-09
812
### Changed
913
- CMake now used for raylib dependency, rather than git submodules

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.11)
22
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
3-
project (raylib-cpp
4-
VERSION 4.0.3
3+
project (raylib_cpp
4+
VERSION 4.0.4
55
DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib"
66
HOMEPAGE_URL "https://github.com/robloach/raylib-cpp"
77
LANGUAGES C CXX)

clib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raylib-cpp",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"repo": "RobLoach/raylib-cpp",
55
"description": "raylib-cpp: C++ Object-Oriented Wrapper for raylib",
66
"homepage": "https://github.com/robloach/raylib-cpp",

examples/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,15 @@ foreach(example_source ${example_sources})
4747
add_executable(${example_name} ${example_source})
4848

4949
# Link raylib and raylib-cpp
50-
target_link_libraries(${example_name} PUBLIC raylib-cpp raylib)
50+
target_link_libraries(${example_name} PUBLIC raylib_cpp raylib)
5151

5252
string(REGEX MATCH ".*/.*/" resources_dir ${example_source})
5353
string(APPEND resources_dir "resources")
54-
5554
endforeach()
5655

5756
# Multiple Files Example
5857
add_executable("multiple" multiple/main.cpp multiple/Player.cpp)
59-
target_link_libraries("multiple" PUBLIC raylib-cpp raylib)
58+
target_link_libraries("multiple" PUBLIC raylib_cpp raylib)
6059

6160
# Copy all the resources
6261
file(COPY ${example_resources} DESTINATION "resources/")

include/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
add_library(raylib-cpp INTERFACE)
1+
add_library(raylib_cpp INTERFACE)
22

33
# Include Directory
4-
target_include_directories(raylib-cpp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/)
4+
target_include_directories(raylib_cpp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/)
55

66
# Set the header files as install files.
77
install(FILES

projects/CMake/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ if (NOT raylib_FOUND)
2222
endif()
2323

2424
# raylib-cpp
25-
find_package(raylib-cpp QUIET)
26-
if (NOT raylib-cpp_FOUND)
25+
find_package(raylib_cpp QUIET)
26+
if (NOT raylib_cpp_FOUND)
2727
include(FetchContent)
2828
FetchContent_Declare(
2929
raylib-cpp
3030
URL https://github.com/RobLoach/raylib-cpp/archive/master.tar.gz
3131
)
32-
FetchContent_GetProperties(raylib-cpp)
33-
if (NOT raylib-cpp_POPULATED) # Have we downloaded raylib-cpp yet?
32+
FetchContent_GetProperties(raylib_cpp)
33+
if (NOT raylib_cpp_POPULATED) # Have we downloaded raylib-cpp yet?
3434
set(FETCHCONTENT_QUIET NO)
35-
FetchContent_Populate(raylib-cpp)
35+
FetchContent_Populate(raylib_cpp)
3636
set(BUILD_RAYLIB_CPP_EXAMPLES OFF CACHE BOOL "" FORCE)
3737
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
38-
add_subdirectory(${raylib-cpp_SOURCE_DIR} ${raylib-cpp_BINARY_DIR})
38+
add_subdirectory(${raylib_cpp_SOURCE_DIR} ${raylib_cpp_BINARY_DIR})
3939
endif()
4040
endif()
4141

4242
# This is the main part:
43-
set(PROJECT_NAME raylib-cpp-example)
43+
set(PROJECT_NAME raylib_cpp_example)
4444
set(PROJECT_SOURCES main.cpp)
4545
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
4646
set(raylib_VERBOSE 1)
47-
target_link_libraries(${PROJECT_NAME} PUBLIC raylib raylib-cpp)
47+
target_link_libraries(${PROJECT_NAME} PUBLIC raylib raylib_cpp)
4848

4949
# That's it! You should have an example executable that you can run. Have fun!

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (MSVC)
1010
else()
1111
target_compile_options(raylib_test PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion)
1212
endif()
13-
target_link_libraries(raylib_test raylib-cpp raylib)
13+
target_link_libraries(raylib_test raylib_cpp raylib)
1414

1515
# Test
1616
add_test(NAME raylib_test COMMAND raylib_test)

0 commit comments

Comments
 (0)