remove prefix/postfix from pybullet, so it becomes pybullet.so and pybullet_d.so in debug mode (and on Windows, pybullet.pyd and pybullet_d.pyd)
fix build_cmake_pybullet_win32.bat, so it links against correct version of pythonx.lib pythonx_d.lib. Still, I would prefer using premake on Windows, it has more native Visual Studio features.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
mkdir cm
|
mkdir cm
|
||||||
cd cm
|
cd cm
|
||||||
cmake -DBUILD_PYBULLET=ON -DCMAKE_BUILD_TYPE=Release -DPYTHON_INCLUDE_DIR=c:\python-3.5.2\include -DPYTHON_LIBRARY=c:\python-3.5.2\libs\python35_d.lib ..
|
cmake -DBUILD_PYBULLET=ON -DCMAKE_BUILD_TYPE=Release -DPYTHON_INCLUDE_DIR=c:\python-3.5.2\include -DPYTHON_LIBRARY=c:\python-3.5.2\libs\python35.lib -DPYTHON_DEBUG_LIBRARY=c:\python-3.5.2\libs\python35_d.lib ..
|
||||||
start .
|
start .
|
||||||
|
|||||||
@@ -110,6 +110,9 @@ ELSE(BUILD_PYBULLET_ENET)
|
|||||||
ADD_LIBRARY(pybullet SHARED ${pybullet_SRCS})
|
ADD_LIBRARY(pybullet SHARED ${pybullet_SRCS})
|
||||||
ENDIF(BUILD_PYBULLET_ENET)
|
ENDIF(BUILD_PYBULLET_ENET)
|
||||||
|
|
||||||
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES PREFIX "")
|
||||||
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES POSTFIX "")
|
||||||
|
|
||||||
SET_TARGET_PROPERTIES(pybullet PROPERTIES VERSION ${BULLET_VERSION})
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES VERSION ${BULLET_VERSION})
|
||||||
SET_TARGET_PROPERTIES(pybullet PROPERTIES SOVERSION ${BULLET_VERSION})
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES SOVERSION ${BULLET_VERSION})
|
||||||
SET_TARGET_PROPERTIES(pybullet PROPERTIES DEBUG_POSTFIX "_d")
|
SET_TARGET_PROPERTIES(pybullet PROPERTIES DEBUG_POSTFIX "_d")
|
||||||
|
|||||||
Reference in New Issue
Block a user