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
0b41b713
Commit
0b41b713
authored
8 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
cmake files: sort entries, improve comments
parent
63fb5752
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-9
2 additions, 9 deletions
CMakeLists.txt
cmake/modules/SearchInstalledSoftware.cmake
+23
-34
23 additions, 34 deletions
cmake/modules/SearchInstalledSoftware.cmake
with
25 additions
and
43 deletions
CMakeLists.txt
+
2
−
9
View file @
0b41b713
...
...
@@ -14,7 +14,7 @@ option(BORNAGAIN_PYTHON "Build with python support" ON)
option
(
BORNAGAIN_USE_PYTHON3
"Build against python 3.5 instead of 2.7"
OFF
)
option
(
BORNAGAIN_GENERATE_BINDINGS
"Generate python bindings during build (requires swig)"
OFF
)
option
(
BORNAGAIN_GENERATE_PYTHON_DOCS
"Generate python documentation from the doxygen comments"
OFF
)
option
(
BORNAGAIN_APP
"Build test application"
OFF
)
option
(
BORNAGAIN_APP
"Build test application"
OFF
)
# TODO: still needed? what for?
option
(
BORNAGAIN_GUI
"Build a graphical user interface"
ON
)
option
(
BORNAGAIN_USERMANUAL
"Build the User Manual"
OFF
)
option
(
BORNAGAIN_MANPAGE
"Build Unix man page"
OFF
)
...
...
@@ -39,25 +39,18 @@ endif()
if
(
BORNAGAIN_MANPAGE
)
add_subdirectory
(
man
)
endif
()
add_subdirectory
(
ThirdParty
)
add_subdirectory
(
Core
)
add_subdirectory
(
Tests/UnitTests/TestCore
)
add_subdirectory
(
Fit
)
add_subdirectory
(
Tests/UnitTests/TestFit
)
if
(
ROOT_FOUND AND BORNAGAIN_APP
)
if
(
ROOT_FOUND AND BORNAGAIN_APP
)
# TODO: find out whether this is still needed
add_subdirectory
(
App
)
endif
()
if
(
BORNAGAIN_GUI
)
add_subdirectory
(
GUI
)
add_subdirectory
(
Tests/UnitTests/TestGUI
)
endif
()
add_subdirectory
(
Tests/FunctionalTests
)
# functional tests (make check)
add_subdirectory
(
cmake
)
# trick to print the message
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/SearchInstalledSoftware.cmake
+
23
−
34
View file @
0b41b713
# Search for installed software required by BornAgain
# === obligatory packages ===
if
(
BORNAGAIN_GENERATE_BINDINGS AND BORNAGAIN_GENERATE_PYTHON_DOCS
)
find_package
(
Doxygen REQUIRED
)
endif
()
if
(
BORNAGAIN_USE_PYTHON3
)
set
(
Python_ADDITIONAL_VERSIONS 3.5 3.4 3.3
)
else
()
set
(
Python_ADDITIONAL_VERSIONS 2.7
)
endif
()
if
(
BORNAGAIN_OPENMPI
)
message
(
STATUS
"Configuring with OpenMPI support"
)
find_package
(
MPI REQUIRED
)
endif
()
# --- Eigen3 ---
# --- math packages ---
find_package
(
Eigen3 REQUIRED
)
# --- FFTW3 ---
find_package
(
FFTW REQUIRED
)
find_package
(
GSL REQUIRED
)
# --- B
OOST
---
# --- B
oost
---
set
(
Boost_USE_STATIC_LIBS OFF
)
set
(
Boost_USE_MULTITHREADED ON
)
set
(
Boost_USE_STATIC_RUNTIME OFF
)
...
...
@@ -39,13 +23,15 @@ message(STATUS "Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
message
(
STATUS
"Boost_LIBRARY_DIRS:
${
Boost_LIBRARY_DIRS
}
"
)
message
(
STATUS
"Boost_LIBRARIES:
${
Boost_LIBRARIES
}
"
)
# === optional packages ===
# --- GSL ---
find_package
(
GSL REQUIRED
)
# --- multithreading ---
if
(
BORNAGAIN_OPENMPI
)
message
(
STATUS
"Configuring with OpenMPI support"
)
find_package
(
MPI REQUIRED
)
endif
()
# -----------------------------------------------------------------------------
# Tiff
# -----------------------------------------------------------------------------
# --- Tiff ---
if
(
BORNAGAIN_TIFF_SUPPORT
)
find_package
(
TIFF 4.0.2
)
if
(
NOT TIFF_FOUND
)
...
...
@@ -54,34 +40,37 @@ if(BORNAGAIN_TIFF_SUPPORT)
endif
()
endif
()
# --- Python ---
if
(
BORNAGAIN_GENERATE_BINDINGS AND BORNAGAIN_GENERATE_PYTHON_DOCS
)
find_package
(
Doxygen REQUIRED
)
endif
()
if
(
BORNAGAIN_USE_PYTHON3
)
set
(
Python_ADDITIONAL_VERSIONS 3.5 3.4 3.3
)
else
()
set
(
Python_ADDITIONAL_VERSIONS 2.7
)
endif
()
# --- Python ---
if
(
BORNAGAIN_PYTHON OR BORNAGAIN_GUI
)
find_package
(
PythonInterp REQUIRED
)
message
(
STATUS
"--> PYTHON_VERSION_STRING:
${
PYTHON_VERSION_STRING
}
, PYTHON_EXECUTABLE:
${
PYTHON_EXECUTABLE
}
"
)
find_package
(
PythonLibs REQUIRED
)
# ValidatePythonInstallation()
# ValidatePythonInstallation()
message
(
STATUS
"--> PYTHON_LIBRARIES:
${
PYTHON_LIBRARIES
}
, PYTHON_INCLUDE_DIRS:
${
PYTHON_INCLUDE_DIRS
}
PYTHONLIBS_VERSION_STRING:
${
PYTHONLIBS_VERSION_STRING
}
"
)
if
(
NOT PYTHONLIBS_FOUND
)
message
(
FATAL_ERROR
"No Python library has been found"
)
endif
()
find_package
(
Numpy REQUIRED
)
endif
()
# --- S
WIG
---
# --- S
wig
---
if
(
BORNAGAIN_PYTHON AND BORNAGAIN_GENERATE_BINDINGS
)
find_package
(
SWIG 3.0 REQUIRED
)
include
(
${
SWIG_USE_FILE
}
)
message
(
STATUS
"--> SWIG EXECUTABLE:
${
SWIG_EXECUTABLE
}
, SWIG_VERSION:
${
SWIG_VERSION
}
"
)
endif
()
# --- R
OOT
---
# --- R
oot
---
if
(
BORNAGAIN_APP
)
find_package
(
ROOT
)
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