Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
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
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
mlz
BornAgain
Commits
6aac1d93
Commit
6aac1d93
authored
1 year ago
by
AlQuemist
Committed by
Wuttke, Joachim
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Collect a list of external dependencies to be installed
parent
555447d7
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
cmake/BornAgain/Dependences.cmake
+15
-0
15 additions, 0 deletions
cmake/BornAgain/Dependences.cmake
with
15 additions
and
0 deletions
cmake/BornAgain/Dependences.cmake
+
15
−
0
View file @
6aac1d93
# Search for installed software required by BornAgain
# list of extra dependencies (needed for a self-contained package)
set
(
BA_Dependencies
""
)
if
(
WIN32
)
set
(
CMAKE_FIND_LIBRARY_SUFFIXES .dll.a .lib
)
endif
()
...
...
@@ -19,12 +22,18 @@ endif()
message
(
STATUS
"formfactor: version=
${
formfactor_VERSION
}
, incl=
${
formfactor_INCLUDE_DIR
}
, "
"lib=
${
formfactor_LIBRARIES
}
"
)
list
(
APPEND BA_Dependencies
"
${
formfactor_LIBRARIES
}
"
)
find_package
(
Threads REQUIRED
)
find_package
(
FFTW3 REQUIRED
)
list
(
APPEND BA_Dependencies
"
${
FFTW3_LIBRARIES
}
"
)
find_package
(
GSL REQUIRED
)
message
(
STATUS
"GSL: version=
${
GSL_VERSION
}
, incl=
${
GSL_INCLUDE_DIR
}
, libs=
${
GSL_LIBRARIES
}
"
)
list
(
APPEND BA_Dependencies
"
${
GSL_LIBRARIES
}
"
)
if
(
WIN32
)
find_package
(
cerf CONFIG REQUIRED COMPONENTS shared CXX
)
add_compile_definitions
(
CERF_AS_CPP=ON
)
...
...
@@ -39,6 +48,8 @@ else()
set
(
cerf_target cerf::cerf
)
endif
()
list
(
APPEND BA_Dependencies
"
${
Cerf_LIBRARIES
}
"
)
# --- Boost ---
set
(
Boost_NO_BOOST_CMAKE ON
)
# prevent shortcut
set
(
Boost_USE_STATIC_LIBS OFF
)
...
...
@@ -71,10 +82,14 @@ if(NOT Boost_FOUND)
message
(
FATAL_ERROR
"Not all required Boost component libraries were found"
)
endif
()
list
(
APPEND BA_Dependencies
"
${
Boost_LIBRARIES
}
"
)
# === optional packages ===
# --- Tiff ---
if
(
BA_TIFF_SUPPORT
)
message
(
STATUS
"Looking for libtiff (use -DBA_TIFF_SUPPORT=OFF to disable)"
)
find_package
(
TIFF 4.0.2 REQUIRED COMPONENTS CXX
)
list
(
APPEND BA_Dependencies
"
${
TIFF_LIBRARIES
}
"
)
endif
()
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