Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
602587d9
Commit
602587d9
authored
9 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
cmake (gmsh) : add an option to disable ctest (so that I can use ctest
in dg and still include gmsh CMakeList.txt)
parent
235105b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+21
-18
21 additions, 18 deletions
CMakeLists.txt
with
21 additions
and
18 deletions
CMakeLists.txt
+
21
−
18
View file @
602587d9
...
...
@@ -1760,24 +1760,27 @@ endif(ENABLE_WRAP_JAVA)
include
(
CPack
)
include
(
CTest
)
file
(
GLOB_RECURSE TESTFILES
tutorial/*.geo demos/*.geo benchmarks/?d/*.geo benchmarks/extrude/*.geo
)
foreach
(
TESTFILE
${
TESTFILES
}
)
# use relative path for cygwin/mingw (the pure win exe built with the mingw
# compilers does not understand a full cygwin-style path)
FILE
(
RELATIVE_PATH TEST
${
CMAKE_CURRENT_BINARY_DIR
}
${
TESTFILE
}
)
add_test
(
${
TEST
}
./gmsh
${
TEST
}
-3 -nopopup -o ./tmp.msh
)
endforeach
()
# if(HAVE_PYTHON)
# file(GLOB_RECURSE TESTFILES tutorial/*.py)
# foreach(TESTFILE ${TESTFILES})
# add_test(NAME ${TESTFILE}
# COMMAND ${PYTHON_EXECUTABLE}
# ${TESTFILE} $<CONFIGURATION>)
# # sys.path.insert(0, "path/to/your/package")
# endforeach()
# endif(HAVE_PYTHON)
if
(
NOT DISABLE_GMSH_TESTS
)
#disabling tests is usefull when including this CMakeLists in an external project
include
(
CTest
)
file
(
GLOB_RECURSE TESTFILES
tutorial/*.geo demos/*.geo benchmarks/?d/*.geo benchmarks/extrude/*.geo
)
foreach
(
TESTFILE
${
TESTFILES
}
)
# use relative path for cygwin/mingw (the pure win exe built with the mingw
# compilers does not understand a full cygwin-style path)
FILE
(
RELATIVE_PATH TEST
${
CMAKE_CURRENT_BINARY_DIR
}
${
TESTFILE
}
)
add_test
(
${
TEST
}
./gmsh
${
TEST
}
-3 -nopopup -o ./tmp.msh
)
endforeach
()
# if(HAVE_PYTHON)
# file(GLOB_RECURSE TESTFILES tutorial/*.py)
# foreach(TESTFILE ${TESTFILES})
# add_test(NAME ${TESTFILE}
# COMMAND ${PYTHON_EXECUTABLE}
# ${TESTFILE} $<CONFIGURATION>)
# # sys.path.insert(0, "path/to/your/package")
# endforeach()
# endif(HAVE_PYTHON)
endif
(
NOT DISABLE_GMSH_TESTS
)
message
(
STATUS
""
)
message
(
STATUS
"Gmsh
${
GMSH_VERSION
}
has been configured for
${
GMSH_OS
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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