Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VTK
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scott Wittenburg
VTK
Commits
ec59dd1e
Commit
ec59dd1e
authored
Jan 17, 2018
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing/Install: cleanup and include in the new build
parent
fa302709
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
20 deletions
+23
-20
Testing/Install/CMakeLists.txt
Testing/Install/CMakeLists.txt
+8
-7
Testing/Install/InstallTest.cmake
Testing/Install/InstallTest.cmake
+15
-13
No files found.
Testing/Install/CMakeLists.txt
View file @
ec59dd1e
# Test "make install"
# Test "make install"
if
(
"x
${
CMAKE_INSTALL_PREFIX
}
"
MATCHES
"^x
${
VTK_BINARY_DIR
}
/InstallTest$"
)
if
(
CMAKE_INSTALL_PREFIX STREQUAL
"
${
VTK_BINARY_DIR
}
/InstallTest"
)
add_test
(
NAME Install
add_test
(
COMMAND
${
CMAKE_COMMAND
}
-DCONFIGURATION=$<CONFIGURATION>
NAME Install
-DVTK_BINARY_DIR=
${
VTK_BINARY_DIR
}
COMMAND
"
${
CMAKE_COMMAND
}
"
-P
${
CMAKE_CURRENT_SOURCE_DIR
}
/InstallTest.cmake
-DCONFIGURATION=$<CONFIGURATION>
)
"-DVTK_BINARY_DIR=
${
VTK_BINARY_DIR
}
"
endif
()
-P
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/InstallTest.cmake"
)
endif
()
Testing/Install/InstallTest.cmake
View file @
ec59dd1e
if
(
NOT DEFINED VTK_BINARY_DIR
)
if
(
NOT DEFINED VTK_BINARY_DIR
)
message
(
FATAL_ERROR
"Invoke with -DVTK_BINARY_DIR=/path/to/VTK/build"
)
message
(
FATAL_ERROR
"Invoke with -DVTK_BINARY_DIR=/path/to/VTK/build"
)
endif
()
endif
()
if
(
NOT DEFINED CONFIGURATION
)
if
(
NOT DEFINED CONFIGURATION
)
message
(
FATAL_ERROR
"Invoke with -DCONFIGURATION=<config>"
)
message
(
FATAL_ERROR
"Invoke with -DCONFIGURATION=<config>"
)
endif
()
endif
()
message
(
STATUS
"Removing InstallTest directory..."
)
message
(
STATUS
"Removing InstallTest directory..."
)
file
(
REMOVE_RECURSE
"
${
VTK_BINARY_DIR
}
/InstallTest"
)
file
(
REMOVE_RECURSE
"
${
VTK_BINARY_DIR
}
/InstallTest"
)
message
(
STATUS
"Building 'install' target..."
)
message
(
STATUS
"Building 'install' target..."
)
execute_process
(
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
--build
"
${
VTK_BINARY_DIR
}
"
COMMAND
"
${
CMAKE_COMMAND
}
"
--target install
--build
"
${
VTK_BINARY_DIR
}
"
--config
"
${
CONFIGURATION
}
"
--target install
RESULT_VARIABLE failed
--config
"
${
CONFIGURATION
}
"
)
RESULT_VARIABLE failed
)
if
(
failed
)
if
(
failed
)
message
(
FATAL_ERROR
"Installation failed:
${
failed
}
"
)
message
(
FATAL_ERROR
"Installation failed:
${
failed
}
"
)
else
()
else
()
file
(
WRITE
"
${
VTK_BINARY_DIR
}
/InstallTest/InstallSucceeded.txt"
"# Installation succeeded!
\n
"
)
file
(
WRITE
"
${
VTK_BINARY_DIR
}
/InstallTest/InstallSucceeded.txt"
endif
()
"# Installation succeeded!
\n
"
)
endif
()
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