From c7d7be0ae014bf40e4b25be8a2fdc2f5ef622cfd Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 23 Sep 2020 14:42:50 -0400 Subject: [PATCH] Remove the static lib The static library provides no value, as this is a header-only library. Fixes #52 --- CMakeLists.txt | 8 +------- include/raylib-cpp.hpp | 5 +++-- lib/CMakeLists.txt | 19 ------------------- lib/libraylib-cpp.cpp | 12 ------------ package.json | 2 +- 5 files changed, 5 insertions(+), 41 deletions(-) delete mode 100644 lib/CMakeLists.txt delete mode 100644 lib/libraylib-cpp.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 5669644..38703ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,12 @@ cmake_minimum_required(VERSION 3.11) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project (raylib-cpp - VERSION 3.0.1 + VERSION 3.1.0 DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib" HOMEPAGE_URL "https://github.com/robloach/raylib-cpp" LANGUAGES C CXX) # Options -option(BUILD_RAYLIB_CPP_STATIC "Static Library" ON) option(BUILD_RAYLIB_CPP_EXAMPLES "Examples" ON) # C++17 @@ -24,11 +23,6 @@ if(BUILD_RAYLIB_CPP_EXAMPLES) set(BUILD_RAYLIB_CPP_STATIC ON) endif() -# Static Library -if(BUILD_RAYLIB_CPP_STATIC) - add_subdirectory(lib) -endif() - # Testing include(CTest) enable_testing() diff --git a/include/raylib-cpp.hpp b/include/raylib-cpp.hpp index be5d36e..02a7c81 100644 --- a/include/raylib-cpp.hpp +++ b/include/raylib-cpp.hpp @@ -64,12 +64,13 @@ namespace raylib { #include "./Material.hpp" #include "./Matrix.hpp" #include "./Mesh.hpp" +#include "./Model.hpp" #include "./ModelAnimation.hpp" #include "./Mouse.hpp" -#include "./Model.hpp" #include "./Music.hpp" -#include "./RayHitInfo.hpp" +#include "./Physics.hpp" #include "./Ray.hpp" +#include "./RayHitInfo.hpp" #include "./Rectangle.hpp" #include "./RenderTexture2D.hpp" #include "./Shader.hpp" diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt deleted file mode 100644 index fdf6463..0000000 --- a/lib/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -# libraylib-cpp static library -add_library(libraylib-cpp STATIC libraylib-cpp) - -# raylib -find_package(raylib 3.0.1 QUIET) -if (NOT raylib_FOUND) - set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples - set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games - add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../vendor/raylib ${CMAKE_CURRENT_SOURCE_DIR}/../vendor/raylib) -endif() - -# Link raylib and raylib-cpp -target_link_libraries(libraylib-cpp PUBLIC raylib raylib-cpp) - -# Remove the "lib" at the beginning since it's already there. -set_target_properties(libraylib-cpp PROPERTIES PREFIX "") - -# Set up the install directory. -install(TARGETS libraylib-cpp DESTINATION lib) diff --git a/lib/libraylib-cpp.cpp b/lib/libraylib-cpp.cpp deleted file mode 100644 index 8cc74bd..0000000 --- a/lib/libraylib-cpp.cpp +++ /dev/null @@ -1,12 +0,0 @@ -/******************************************************************************************* -* -* libraylib-cpp [raylib-cpp] library -* -* This is a static C++ built library to make linking easier. -* -* Copyright (c) 2020 Rob Loach (@RobLoach) -* -********************************************************************************************/ - -// raylib-cpp -#include "raylib-cpp.hpp" diff --git a/package.json b/package.json index b63aac7..edbcc15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "raylib-cpp", - "version": "3.0.1", + "version": "3.1.0", "repo": "robloach/raylib-cpp", "description": "raylib-cpp: C++ Object-Oriented Wrapper for raylib", "keywords": ["raylib"],