Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
63d43144
Commit
63d43144
authored
12 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Added option OGS_BUILD_TESTS.
parent
f0b38ba6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+18
-12
18 additions, 12 deletions
CMakeLists.txt
with
18 additions
and
12 deletions
CMakeLists.txt
+
18
−
12
View file @
63d43144
...
...
@@ -37,9 +37,15 @@ IF((CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) AND GPROF_PATH)
OPTION
(
OGS_PROFILE
"Enables compiling with flags set for profiling with gprof."
OFF
)
ENDIF
()
# GCC AND GPROF_PATH
# Disable
Qt
#
Enable /
Disable
parts
OPTION
(
OGS_DONT_USE_QT
"Disables all Qt specific code."
OFF
)
OPTION
(
OGS_BUILD_CLI
"Should the OGS simulator be built?"
ON
)
OPTION
(
OGS_BUILD_TESTS
"Should the test executables be built?"
ON
)
OPTION
(
OGS_BUILD_GUI
"Should the Data Explorer be built?"
OFF
)
OPTION
(
OGS_NO_EXTERNAL_LIBS
"Builds OGS without any external dependencies."
OFF
)
# Print CMake variable values
IF
(
OGS_CMAKE_DEBUG
)
INCLUDE
(
ListAllCMakeVariableValues
)
...
...
@@ -51,10 +57,6 @@ IF (OGS_BUILD_INFO)
ADD_DEFINITIONS
(
-DOGS_BUILD_INFO
)
ENDIF
(
OGS_BUILD_INFO
)
OPTION
(
OGS_BUILD_GUI
"Should the Data Explorer be built?"
OFF
)
OPTION
(
OGS_NO_EXTERNAL_LIBS
"Builds OGS without any external dependencies."
OFF
)
######################
### Subdirectories ###
######################
...
...
@@ -66,16 +68,20 @@ ADD_SUBDIRECTORY( FileIO )
ADD_SUBDIRECTORY
(
GeoLib
)
ADD_SUBDIRECTORY
(
MathLib
)
ADD_SUBDIRECTORY
(
MeshLib
)
ADD_SUBDIRECTORY
(
OGS
)
ADD_SUBDIRECTORY
(
SimpleTests/MatrixTests
)
ADD_SUBDIRECTORY
(
SimpleTests/MeshTests
)
IF
(
NOT MSVC AND BLAS_FOUND AND LAPACK_FOUND
)
ADD_SUBDIRECTORY
(
SimpleTests/SolverTests
)
ENDIF
()
IF
(
OGS_BUILD_CLI
)
ADD_SUBDIRECTORY
(
OGS
)
ENDIF
()
# OGS_BUILD_CLI
IF
(
OGS_BUILD_TESTS
)
ADD_SUBDIRECTORY
(
SimpleTests/MatrixTests
)
ADD_SUBDIRECTORY
(
SimpleTests/MeshTests
)
IF
(
NOT MSVC AND BLAS_FOUND AND LAPACK_FOUND
)
ADD_SUBDIRECTORY
(
SimpleTests/SolverTests
)
ENDIF
()
ENDIF
()
# OGS_BUILD_TESTS
IF
(
OGS_BUILD_GUI
)
ADD_DEFINITIONS
(
-DOGS_BUILD_GUI
)
ADD_SUBDIRECTORY
(
Gui
)
ENDIF
()
ENDIF
()
# OGS_BUILD_GUI
CONFIGURE_FILE
(
BaseLib/BuildInfo.h.in
${
PROJECT_BINARY_DIR
}
/BaseLib/BuildInfo.h
)
CONFIGURE_FILE
(
BaseLib/Configure.h.in
${
PROJECT_BINARY_DIR
}
/BaseLib/Configure.h
)
\ No newline at end of file
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