|
| 1 | +set(SIMULATION_LINK_LIBRARIES AntTweakBar glew PositionBasedDynamics) |
| 2 | +set(SIMULATION_DEPENDENCIES AntTweakBar glew PositionBasedDynamics) |
| 3 | + |
| 4 | +if(WIN32) |
| 5 | + set(SIMULATION_LINK_LIBRARIES freeglut opengl32.lib glu32.lib ${SIMULATION_LINK_LIBRARIES}) |
| 6 | + set(SIMULATION_DEPENDENCIES freeglut ${SIMULATION_DEPENDENCIES}) |
| 7 | +else() |
| 8 | + find_package(GLUT REQUIRED) |
| 9 | + find_package(OpenGL REQUIRED) |
| 10 | + |
| 11 | + set(SIMULATION_LINK_LIBRARIES |
| 12 | + ${SIMULATION_LINK_LIBRARIES} |
| 13 | + ${GLUT_LIBRARIES} |
| 14 | + ${OPENGL_LIBRARIES} |
| 15 | + ) |
| 16 | +endif() |
| 17 | + |
| 18 | +add_executable(RigidBodyClothCouplingDemo |
| 19 | + RigidBodyClothCouplingDemo.cpp |
| 20 | + |
| 21 | + TimeStepRigidBodyParticleModel.cpp |
| 22 | + TimeStepRigidBodyParticleModel.h |
| 23 | + RigidBodyParticleModel.cpp |
| 24 | + RigidBodyParticleModel.h |
| 25 | + |
| 26 | + ${VIS_FILES} |
| 27 | + ${PROJECT_PATH}/Demos/Utils/Config.h |
| 28 | + ${PROJECT_PATH}/Demos/Utils/TimeManager.cpp |
| 29 | + ${PROJECT_PATH}/Demos/Utils/TimeManager.h |
| 30 | + ${PROJECT_PATH}/Demos/Utils/RigidBody.h |
| 31 | + |
| 32 | + CMakeLists.txt |
| 33 | +) |
| 34 | + |
| 35 | +set_target_properties(RigidBodyClothCouplingDemo PROPERTIES FOLDER "Demos") |
| 36 | +add_dependencies(RigidBodyClothCouplingDemo ${SIMULATION_DEPENDENCIES}) |
| 37 | +target_link_libraries(RigidBodyClothCouplingDemo ${SIMULATION_LINK_LIBRARIES}) |
| 38 | + |
| 39 | + |
| 40 | +add_definitions(-DTW_NO_LIB_PRAGMA -DTW_STATIC) |
| 41 | +find_package( Eigen3 REQUIRED ) |
| 42 | +include_directories( ${EIGEN3_INCLUDE_DIR} ) |
| 43 | +include_directories(${PROJECT_PATH}/extern/freeglut/include) |
| 44 | +include_directories(${PROJECT_PATH}/extern/glew/include) |
| 45 | + |
| 46 | + |
| 47 | +VIS_SOURCE_GROUPS() |
0 commit comments