Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210060373
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210060373
Commits
ab14cb79
Commit
ab14cb79
authored
3 years ago
by
TOMsworkspace
Browse files
Options
Downloads
Patches
Plain Diff
add CMakeLists
parent
c6b12c78
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
CMakeLists.txt
+26
-97
26 additions, 97 deletions
CMakeLists.txt
README.md
+9
-0
9 additions, 0 deletions
README.md
src/CMakeLists.txt
+19
-0
19 additions, 0 deletions
src/CMakeLists.txt
src/dtkGraphicsKernel.h
+1
-1
1 addition, 1 deletion
src/dtkGraphicsKernel.h
with
58 additions
and
98 deletions
.gitignore
+
3
−
0
View file @
ab14cb79
...
...
@@ -34,3 +34,6 @@
build
build/
install
install/
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
26
−
97
View file @
ab14cb79
cmake_minimum_required
(
VERSION 3.
17
)
cmake_minimum_required
(
VERSION 3.
0
)
project
(
dtk
)
set
(
CMAKE_CXX_STANDARD 11
)
include_directories
(
src
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_SOURCE_DIR
}
/install"
CACHE STRING
"Installation directory of library files"
)
#
set(Boost_DIR "C:\\local\\boost_1_68_0")
#
set(
CGAL_DIR "C:\\dev\\CGAL-4.14.3
")
#
Installation directory of library files
set
(
DTK_INSTALL_LIBDIR
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
find_package
(
Boost
)
#include_directories(${Boost
_DIR
S
})
#Installation directory for CMake configuration files
set
(
DTK_INSTALL_CMAKEDIR
"
${
CMAKE_BINARY
_DIR
}
"
)
find_package
(
CGAL
)
#Installation directory for header files
set
(
DTK_INSTALL_INCLUDEDIR
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
add_executable
(
dtk
src/dtk.cpp
src/dtk.h
src/dtkArray.h
src/dtkAssert.cpp
src/dtkAssert.h
src/dtkCollisionDetectBasic.cpp
src/dtkCollisionDetectBasic.h
src/dtkCollisionDetectHierarchy.cpp
src/dtkCollisionDetectHierarchy.h
src/dtkCollisionDetectHierarchyKDOPS.cpp
src/dtkCollisionDetectHierarchyKDOPS.h
src/dtkCollisionDetectNode.cpp
src/dtkCollisionDetectNode.h
src/dtkCollisionDetectNodeKDOPS.cpp
src/dtkCollisionDetectNodeKDOPS.h
src/dtkCollisionDetectPrimitive.cpp
src/dtkCollisionDetectPrimitive.h
src/dtkCollisionDetectStage.cpp
src/dtkCollisionDetectStage.h
src/dtkConfig.h
src/dtkError.h
src/dtkErrorManager.cpp
src/dtkErrorManager.h
src/dtkExports.h
src/dtkGraphics.h
src/dtkGraphicsKernel.cpp
src/dtkGraphicsKernel.h
src/dtkGraphicsTools.h
src/dtkIDTypes.h
src/dtkImports.h
src/dtkInit.h
src/dtkIntersectTest.cpp
src/dtkIntersectTest.h
src/dtkIO.h
src/dtkMatrix.h
src/dtkMatrixAlgorithm.h
src/dtkMatrixOP.h
src/dtkPhysCore.cpp
src/dtkPhysCore.h
src/dtkPhysKnotPlanner.cpp
src/dtkPhysKnotPlanner.h
src/dtkPhysMassPoint.cpp
src/dtkPhysMassPoint.h
src/dtkPhysMassSpring.cpp
src/dtkPhysMassSpring.h
src/dtkPhysMassSpringCollisionResponse.cpp
src/dtkPhysMassSpringCollisionResponse.h
src/dtkPhysMassSpringThread.cpp
src/dtkPhysMassSpringThread.h
src/dtkPhysMassSpringThreadCollisionResponse.cpp
src/dtkPhysMassSpringThreadCollisionResponse.h
src/dtkPhysParticle.cpp
src/dtkPhysParticle.h
src/dtkPhysParticleSystem.cpp
src/dtkPhysParticleSystem.h
src/dtkPhysSpring.cpp
src/dtkPhysSpring.h
src/dtkPhysTetraMassSpring.cpp
src/dtkPhysTetraMassSpring.h
src/dtkPoints.h
src/dtkPointsReader.cpp
src/dtkPointsReader.h
src/dtkPointsVector.h
src/dtkPointsWriter.cpp
src/dtkPointsWriter.h
src/dtkProperty.h
src/dtkRandom.h
src/dtkSign.cpp
src/dtkSign.h
src/dtkStaticMeshEliminator.cpp
src/dtkStaticMeshEliminator.h
src/dtkStaticTetraMesh.cpp
src/dtkStaticTetraMesh.h
src/dtkStaticTetraMeshReader.cpp
src/dtkStaticTetraMeshReader.h
src/dtkStaticTetraMeshWriter.cpp
src/dtkStaticTetraMeshWriter.h
src/dtkStaticTriangleMesh.cpp
src/dtkStaticTriangleMesh.h
src/dtkStaticTriangleMeshReader.cpp
src/dtkStaticTriangleMeshReader.h
src/dtkStaticTriangleMeshWriter.cpp
src/dtkStaticTriangleMeshWriter.h
src/dtkTime.h
src/dtkTx.h
src/dtkTxIO.h
src/dtkTxOP.h
src/dtkUtility.h
)
if
(
"
${
DTK_INSTALL_LIBDIR
}
"
STREQUAL
""
)
set
(
DTK_INSTALL_LIBDIR
"lib"
)
endif
()
target_link_libraries
(
dtk CGAL::CGAL
)
if
(
"
${
DTK_INSTALL_CMAKEDIR
}
"
STREQUAL
""
)
set
(
DTK_INSTALL_CMAKEDIR
"bin"
)
endif
()
if
(
"
${
DTK_INSTALL_INCLUDEDIR
}
"
STREQUAL
""
)
set
(
DTK_INSTALL_INCLUDEDIR
"include"
)
endif
()
set
(
DTK_INSTALL_INCLUDEDIR
"include"
)
message
(
"DTK_INSTALL_LIBDIR :
${
DTK_INSTALL_LIBDIR
}
"
)
message
(
"DTK_INSTALL_INCLUDEDIR :
${
DTK_INSTALL_INCLUDEDIR
}
"
)
message
(
"DTK_INSTALL_CMAKEDIR:
${
DTK_INSTALL_CMAKEDIR
}
"
)
add_subdirectory
(
src
)
This diff is collapsed.
Click to expand it.
README.md
+
9
−
0
View file @
ab14cb79
# dtk
deformable toolkit used for deforamable physical simulation
## How to build
dtk is build by CMake. so you can build easily.
### build with CMake GUI
### build with CLI
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
0 → 100644
+
19
−
0
View file @
ab14cb79
find_package
(
CGAL
)
aux_source_directory
(
. dir_source
)
file
(
GLOB dir_headers *.h
)
#link
add_library
(
dtk
${
dir_source
}
)
target_link_libraries
(
dtk CGAL::CGAL
)
install
(
TARGETS dtk
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
)
#install
install
(
TARGETS dtk DESTINATION
${
DTK_INSTALL_LIBDIR
}
)
install
(
FILES
${
dir_headers
}
DESTINATION
${
DTK_INSTALL_INCLUDEDIR
}
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/dtkGraphicsKernel.h
+
1
−
1
View file @
ab14cb79
...
...
@@ -3,7 +3,7 @@
#include
"dtkConfig.h"
#include
<
CGAL/Exact_predicates_inexact_constructions_kernel.h
>
#include
"
CGAL/Exact_predicates_inexact_constructions_kernel.h
"
#include
<CGAL/basic.h>
#include
<CGAL/Polyhedron_3.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment