forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[box2d] Replace buildsystem with CMake for better cross-platform support
- Loading branch information
1 parent
8eac561
commit 64c3268
Showing
4 changed files
with
36 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
project(Box2d CXX) | ||
|
||
file(GLOB_RECURSE SOURCES Box2D/Box2D/*.cpp) | ||
|
||
add_library(Box2D ${SOURCES}) | ||
target_include_directories(Box2D PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Box2D> $<INSTALL_INTERFACE:include>) | ||
|
||
install(TARGETS Box2D | ||
EXPORT unofficial-box2d-targets | ||
RUNTIME DESTINATION bin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
) | ||
|
||
install( | ||
EXPORT unofficial-box2d-targets | ||
FILE unofficial-box2d-config.cmake | ||
NAMESPACE unofficial::box2d:: | ||
DESTINATION share/unofficial-box2d | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Source: box2d | ||
Version: 2.3.1-374664b | ||
Version: 2.3.1-374664b-1 | ||
Description: Box2D (http://box2d.org) is an open source C++ engine for simulating rigid bodies in 2D. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.