Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
meshalyzer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openCARP
meshalyzer
Commits
6bf029c2
Commit
6bf029c2
authored
May 19, 2020
by
Yung-Lin Huang (Cary)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake only finds required VTK components
parent
f5eb9c08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
src/CMakeLists.txt
src/CMakeLists.txt
+20
-7
No files found.
src/CMakeLists.txt
View file @
6bf029c2
...
...
@@ -34,13 +34,26 @@ else (PTHREAD_LIB)
endif
(
PTHREAD_LIB
)
#VTK
find_package
(
VTK
)
if
(
VTK_FOUND
)
include_directories
(
${
VTK_INCLUDE_DIRS
}
)
link_libraries
(
${
VTK_LIBRARIES
}
)
else
((
VTK_FOUND
))
message
(
FATAL_ERROR
"Couldn't find VTK library"
)
endif
(
VTK_FOUND
)
option
(
USE_VTK
"Build with VTK"
TRUE
)
if
(
USE_VTK
)
set
(
MESHALYZER_VTK_COMPONENTS
vtkCommonCore
vtkIOCore
vtkIOLegacy
vtkIOXML
)
find_package
(
VTK REQUIRED COMPONENTS
${
MESHALYZER_VTK_COMPONENTS
}
)
if
(
VTK_FOUND
)
message
(
STATUS
"Found VTK components:
${
VTK_LIBRARIES
}
"
)
include_directories
(
${
VTK_INCLUDE_DIRS
}
)
link_libraries
(
${
VTK_LIBRARIES
}
)
add_definitions
(
-DUSE_VTK
)
else
(
VTK_FOUND
)
message
(
FATAL_ERROR
"Couldn't find VTK library"
)
endif
(
VTK_FOUND
)
endif
(
USE_VTK
)
#Check for GLUT
find_package
(
OpenGL REQUIRED
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment