Run cmake-format

cmake-format --command-case upper --dangle-parens true CMakeLists.txt
This commit is contained in:
Gustavo Goretkin
2019-04-29 11:03:41 -04:00
parent aec9968e28
commit 9009ca914e

View File

@@ -1,4 +1,3 @@
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
${BULLET_PHYSICS_SOURCE_DIR}/src ${BULLET_PHYSICS_SOURCE_DIR}/src
${BULLET_PHYSICS_SOURCE_DIR}/examples ${BULLET_PHYSICS_SOURCE_DIR}/examples
@@ -8,14 +7,13 @@ INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
) )
IF(BUILD_PYBULLET_NUMPY) IF(BUILD_PYBULLET_NUMPY)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(${PYTHON_NUMPY_INCLUDE_DIR})
${PYTHON_NUMPY_INCLUDE_DIR}
)
ENDIF() ENDIF()
ADD_DEFINITIONS(-DSTATIC_LINK_SPD_PLUGIN) ADD_DEFINITIONS(-DSTATIC_LINK_SPD_PLUGIN)
SET(pybullet_SRCS SET(
pybullet_SRCS
pybullet.c pybullet.c
../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.cpp ../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.cpp
../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.h ../../examples/SharedMemory/plugins/stablePDPlugin/SpAlg.h
@@ -68,12 +66,10 @@ SET(pybullet_SRCS
../../examples/SharedMemory/PhysicsServerCommandProcessor.h ../../examples/SharedMemory/PhysicsServerCommandProcessor.h
../../examples/SharedMemory/b3PluginManager.cpp ../../examples/SharedMemory/b3PluginManager.cpp
../../examples/SharedMemory/b3PluginManager.h ../../examples/SharedMemory/b3PluginManager.h
../../examples/SharedMemory/PhysicsClientSharedMemory.cpp ../../examples/SharedMemory/PhysicsClientSharedMemory.cpp
../../examples/SharedMemory/PhysicsClientSharedMemory.h ../../examples/SharedMemory/PhysicsClientSharedMemory.h
../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp ../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.cpp
../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.h ../../examples/SharedMemory/PhysicsClientSharedMemory_C_API.h
../../examples/SharedMemory/PhysicsClientC_API.cpp ../../examples/SharedMemory/PhysicsClientC_API.cpp
../../examples/SharedMemory/PhysicsClientC_API.h ../../examples/SharedMemory/PhysicsClientC_API.h
../../examples/SharedMemory/Win32SharedMemory.cpp ../../examples/SharedMemory/Win32SharedMemory.cpp
@@ -84,7 +80,6 @@ SET(pybullet_SRCS
../../examples/Utils/b3ResourcePath.h ../../examples/Utils/b3ResourcePath.h
../../examples/Utils/RobotLoggingUtil.cpp ../../examples/Utils/RobotLoggingUtil.cpp
../../examples/Utils/RobotLoggingUtil.h ../../examples/Utils/RobotLoggingUtil.h
../../examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp ../../examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp
../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp ../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp
../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h ../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h
@@ -103,16 +98,13 @@ SET(pybullet_SRCS
../../examples/MultiThreading/b3PosixThreadSupport.cpp ../../examples/MultiThreading/b3PosixThreadSupport.cpp
../../examples/MultiThreading/b3Win32ThreadSupport.cpp ../../examples/MultiThreading/b3Win32ThreadSupport.cpp
../../examples/MultiThreading/b3ThreadSupportInterface.cpp ../../examples/MultiThreading/b3ThreadSupportInterface.cpp
) )
IF(BUILD_PYBULLET_CLSOCKET) IF(BUILD_PYBULLET_CLSOCKET)
ADD_DEFINITIONS(-DBT_ENABLE_CLSOCKET) ADD_DEFINITIONS(-DBT_ENABLE_CLSOCKET)
ENDIF(BUILD_PYBULLET_CLSOCKET) ENDIF(BUILD_PYBULLET_CLSOCKET)
IF(WIN32) IF(WIN32)
LINK_LIBRARIES( LINK_LIBRARIES(${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY})
${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY}
)
IF(BUILD_PYBULLET_ENET) IF(BUILD_PYBULLET_ENET)
ADD_DEFINITIONS(-DWIN32 -DBT_ENABLE_ENET) ADD_DEFINITIONS(-DWIN32 -DBT_ENABLE_ENET)
ENDIF(BUILD_PYBULLET_ENET) ENDIF(BUILD_PYBULLET_ENET)
@@ -130,9 +122,10 @@ ELSE(WIN32)
ENDIF(BUILD_PYBULLET_CLSOCKET) ENDIF(BUILD_PYBULLET_CLSOCKET)
ENDIF(WIN32) ENDIF(WIN32)
IF(BUILD_PYBULLET_ENET) IF(BUILD_PYBULLET_ENET)
set(pybullet_SRCS ${pybullet_SRCS} SET(
pybullet_SRCS
${pybullet_SRCS}
../../examples/SharedMemory/PhysicsClientUDP.cpp ../../examples/SharedMemory/PhysicsClientUDP.cpp
../../examples/SharedMemory/PhysicsClientUDP_C_API.cpp ../../examples/SharedMemory/PhysicsClientUDP_C_API.cpp
../../examples/SharedMemory/PhysicsClientUDP.h ../../examples/SharedMemory/PhysicsClientUDP.h
@@ -150,7 +143,9 @@ IF(BUILD_PYBULLET_ENET)
ENDIF(BUILD_PYBULLET_ENET) ENDIF(BUILD_PYBULLET_ENET)
IF(BUILD_PYBULLET_CLSOCKET) IF(BUILD_PYBULLET_CLSOCKET)
set(pybullet_SRCS ${pybullet_SRCS} SET(
pybullet_SRCS
${pybullet_SRCS}
../../examples/SharedMemory/PhysicsClientTCP.cpp ../../examples/SharedMemory/PhysicsClientTCP.cpp
../../examples/SharedMemory/PhysicsClientTCP.h ../../examples/SharedMemory/PhysicsClientTCP.h
../../examples/SharedMemory/PhysicsClientTCP_C_API.cpp ../../examples/SharedMemory/PhysicsClientTCP_C_API.cpp
@@ -170,7 +165,6 @@ 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")
IF(WIN32) IF(WIN32)
IF(BUILD_PYBULLET_ENET OR BUILD_PYBULLET_CLSOCKET) IF(BUILD_PYBULLET_ENET OR BUILD_PYBULLET_CLSOCKET)
TARGET_LINK_LIBRARIES(pybullet ws2_32) TARGET_LINK_LIBRARIES(pybullet ws2_32)
@@ -183,22 +177,41 @@ IF (APPLE)
SET_TARGET_PROPERTIES(pybullet PROPERTIES SUFFIX ".so") SET_TARGET_PROPERTIES(pybullet PROPERTIES SUFFIX ".so")
ENDIF() ENDIF()
TARGET_LINK_LIBRARIES(
pybullet
TARGET_LINK_LIBRARIES(pybullet BulletExampleBrowserLib BulletFileLoader BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils BulletInverseDynamics LinearMath OpenGLWindow gwen BussIK Bullet3Common) BulletExampleBrowserLib
BulletFileLoader
BulletWorldImporter
BulletSoftBody
BulletDynamics
BulletCollision
BulletInverseDynamicsUtils
BulletInverseDynamics
LinearMath
OpenGLWindow
gwen
BussIK
Bullet3Common
)
IF(WIN32) IF(WIN32)
TARGET_LINK_LIBRARIES(pybullet ${PYTHON_LIBRARIES}) TARGET_LINK_LIBRARIES(pybullet ${PYTHON_LIBRARIES})
ELSEIF(APPLE) ELSEIF(APPLE)
SET_TARGET_PROPERTIES(pybullet PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") SET_TARGET_PROPERTIES(
pybullet
PROPERTIES LINK_FLAGS "-undefined dynamic_lookup"
)
ENDIF() ENDIF()
# else Linux: dont link # else Linux: dont link
IF(WIN32) IF(WIN32)
SET(PYTHON_SITE_PACKAGES Lib/site-packages CACHE PATH "Python install path") SET(PYTHON_SITE_PACKAGES Lib/site-packages CACHE PATH "Python install path")
ELSE() ELSE()
SET(PYTHON_SITE_PACKAGES lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE PATH "Python install path") SET(
PYTHON_SITE_PACKAGES
lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages
CACHE PATH "Python install path"
)
ENDIF() ENDIF()
INSTALL(TARGETS pybullet DESTINATION ${PYTHON_SITE_PACKAGES}) INSTALL(TARGETS pybullet DESTINATION ${PYTHON_SITE_PACKAGES})