Warning, /education/step/stepcore/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_library(stepcore STATIC) 0002 0003 target_sources(stepcore PRIVATE 0004 constants.cc 0005 0006 material.cc 0007 0008 # Base objects 0009 object.cc 0010 item.cc 0011 body.cc 0012 objecterrors.cc 0013 force.cc 0014 joint.cc 0015 itemgroup.cc 0016 0017 # Storage objects 0018 world.cc 0019 factory.cc 0020 particle.cc 0021 rigidbody.cc 0022 gas.cc 0023 softbody.cc 0024 gravitation.cc 0025 coulombforce.cc 0026 spring.cc 0027 motor.cc 0028 tool.cc 0029 joints.cc 0030 solver.cc 0031 eulersolver.cc 0032 collisionsolver.cc 0033 constraintsolver.cc 0034 xmlfile.cc 0035 ) 0036 0037 target_link_libraries(stepcore 0038 Eigen3::Eigen 0039 ) 0040 0041 if(STEPCORE_WITH_GSL) 0042 target_compile_definitions(stepcore PUBLIC -DSTEPCORE_WITH_GSL) 0043 target_include_directories(stepcore PUBLIC ${GSL_INCLUDE_DIR}) 0044 target_link_libraries(stepcore ${GSL_LIBRARIES} ${GSL_CBLAS_LIBRARIES}) 0045 target_sources(stepcore PRIVATE gslsolver.cc) 0046 endif(STEPCORE_WITH_GSL) 0047 0048 if(STEPCORE_WITH_QT) 0049 target_compile_definitions(stepcore PUBLIC -DSTEPCORE_WITH_QT) 0050 0051 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Xml) 0052 0053 target_link_libraries(stepcore Qt::Core Qt::Xml) 0054 endif(STEPCORE_WITH_QT)