btogre
This commit is contained in:
parent
2c8d2b5c25
commit
6185a5ceaa
|
@ -0,0 +1,5 @@
|
|||
353c353,354
|
||||
< trimesh->addTriangle(vertexPos[0], vertexPos[1], vertexPos[2]);
|
||||
---
|
||||
> // Create continuous mesh.
|
||||
> trimesh->addTriangle(vertexPos[0], vertexPos[1], vertexPos[2], true);
|
|
@ -0,0 +1,30 @@
|
|||
commit 05cdf41dd6937fb02031727c8a5735aca70be439
|
||||
Author: Alexander Hirsch <1zeeky@gmail.com>
|
||||
Date: Thu Feb 21 04:00:41 2013 +0100
|
||||
|
||||
add cmake install targets
|
||||
|
||||
diff --git a/BtOgreConfig.cmake b/BtOgreConfig.cmake
|
||||
new file mode 100644
|
||||
index 0000000..d29444d
|
||||
--- /dev/null
|
||||
+++ b/BtOgreConfig.cmake
|
||||
@@ -0,0 +1,2 @@
|
||||
+find_path(BtOgre_INCLUDE_DIR BtOgreGP.h HINTS "/usr/include/BtOgre" "/usr/include")
|
||||
+find_library(BtOgre_LIBRARY NAMES BtOgre libBtOgre HINTS "/usr/lib")
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4fe3d14..6d44be4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -15,3 +15,11 @@ include_directories(
|
||||
|
||||
add_library(BtOgre STATIC BtOgre.cpp)
|
||||
target_link_libraries(BtOgre ${BULLET_LIBRARIES} ${OGRE_LIBRARIES})
|
||||
+
|
||||
+file(GLOB BtOgre_HEADERS "${PROJECT_SOURCE_DIR}/include/*.h")
|
||||
+set_target_properties(BtOgre PROPERTIES PUBLIC_HEADER "${BtOgre_HEADERS}")
|
||||
+
|
||||
+install(TARGETS BtOgre
|
||||
+ PUBLIC_HEADER DESTINATION include/BtOgre
|
||||
+ ARCHIVE DESTINATION lib)
|
||||
+install(FILES BtOgreConfig.cmake DESTINATION lib/cmake/BtOgre)
|
|
@ -0,0 +1,25 @@
|
|||
# Tanım: İnce bir Bullet-Ogre bağlantısı.
|
||||
# URL: http://www.ogre3d.org/forums/viewtopic.php?f=5&t=46856
|
||||
# Paketçi: Cihan_Alkan
|
||||
# Gerekler: cmake boost bullet ogre
|
||||
# Grup: geliştirme
|
||||
|
||||
isim=btogre
|
||||
surum=6266297
|
||||
devir=1
|
||||
kaynak=(cmake-targets.patch
|
||||
BtOgre.cpp.patch)
|
||||
|
||||
derle() {
|
||||
git_indir https://github.com/nikki93/btogre $isim
|
||||
|
||||
cd "${SRC}/${isim}"
|
||||
|
||||
patch -Np1 -i "${SRC}/cmake-targets.patch"
|
||||
patch "${SRC}/${isim}/BtOgre.cpp" "${SRC}/BtOgre.cpp.patch"
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
|
||||
-DOGRE_BUILD=/opt/OGRE-1.9 \
|
||||
-DOGRE_LIB_DIR=/opt/OGRE-1.9/lib
|
||||
make
|
||||
make DESTDIR="${PKG}" install
|
||||
}
|
Loading…
Reference in New Issue