# included files don't affect outside policies: cmake_policy(SET CMP0011 NEW) include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.cmake) aux_source_directory(src/oops OOPS_SRCS) aux_source_directory(src/oops/odeJoints ODEJOINTS_SRCS) set (TARGET_INCLUDE_DIR ${INVRS_TARGET_INCLUDE_DIR}/inVRs/tools/libraries/oops) set (TARGET_LIB_DIR ${INVRS_TARGET_LIB_DIR}) set(ALL_SRCS ${OOPS_SRCS} ${ODEJOINTS_SRCS}) add_library(oops SHARED ${ALL_SRCS}) add_dependencies (oops inVRsSystemCore) if (WIN32) target_link_libraries(oops debug OSGBaseD.lib debug OSGSystemD.lib debug OSGWindowGLUTD.lib optimized OSGBase.lib optimized OSGSystem.lib optimized OSGWindowGLUT.lib) endif (WIN32) target_link_libraries(oops inVRsSystemCore ${ODE_LIBRARIES}) install (TARGETS oops DESTINATION ${TARGET_LIB_DIR}) configure_file ( ${CMAKE_CURRENT_SOURCE_DIR}/include/oops/configOops.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/oops/configOops.h ) install (FILES # include/oops/TireGeometry.h include/oops/OpenSGRendererFactory.h include/oops/Geometries.h # include/oops/VehicleFactory.h # include/oops/TireGeometryFactory.h include/oops/HtmpHeightFieldLoader.h include/oops/ArticulatedBody.h include/oops/OpenSGTransformationWriterFactory.h include/oops/JointFactories.h include/oops/OopsMath.h include/oops/GeometryFactories.h include/oops/Simulation.h # include/oops/Vehicle.h include/oops/DefaultArticulatedBodyFactory.h include/oops/RigidBodyMethodData.h include/oops/FrictionValues.h include/oops/OpenSGTransformationWriter.h include/oops/OpenSGTriangleMeshLoader.h include/oops/RigidBody.h include/oops/SimulationObjectInputListener.h include/oops/OpenSGRenderer.h include/oops/Joints.h include/oops/XMLLoader.h include/oops/DefaultRigidBodyFactory.h ${CMAKE_CURRENT_BINARY_DIR}/include/oops/configOops.h DESTINATION ${TARGET_INCLUDE_DIR}) install (FILES include/oops/odeJoints/ODEJoints.h DESTINATION ${TARGET_INCLUDE_DIR}/odeJoints) install (FILES include/oops/Interfaces/SimulationObjectInterface.h include/oops/Interfaces/RigidBodyFactory.h include/oops/Interfaces/CollisionListenerInterface.h include/oops/Interfaces/RendererInterface.h include/oops/Interfaces/TriangleMeshLoader.h include/oops/Interfaces/HeightFieldLoader.h include/oops/Interfaces/TransformationWriterInterface.h include/oops/Interfaces/ArticulatedBodyFactory.h include/oops/Interfaces/TransformationWriterFactory.h include/oops/Interfaces/RendererFactory.h DESTINATION ${TARGET_INCLUDE_DIR}/Interfaces)