mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
Remove the static lib
The static library provides no value, as this is a header-only library. Fixes #52
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
@@ -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"
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user