The Crystallographic Fortran Modules Library (CrysFML) is a set of modules containing procedures of interest in Crystallographic applications.
Project description
CMake is a system used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice.
Here are the instructions to run cmake in order to build the CrysFML library.
-
download and install a recent version of cmake (>= 3.0.0 required)
-
check that the cmake binary directory is in the PATH altogether with the different compilers that will be used for the build.
-
set the environment variable CRYSFML to the directory where the README.md is located.
-
create a directory wherever you want that will contain the files generated during the build (e.g. ${CRYSFML}/build). If you intend to do the build as superuser, this directory should give recursively the writing rights for every user.
Now you are ready for the cmake run that will configure your build. -
change directory to the build directory created in step 4.
-
the CMake usage is:
cmake -G generator -Dvariable=value path_to_your_source_directory
generator: CMake requires to know for which build tool it shall generate files (GNU make, Visual Studio, Xcode, etc). If not specified on the command line, it tries to guess it based on you environment. Once identified the build tool, CMake uses the corresponding Generator for creating files for your build tool. You can explicitly specify the generator with the command line option -G "Name of the generator".
For knowing the available generators on your platform, execute
cmake --help
This will list the generator's names at the end of the help text. Take care the generator's names are case-sensitive.
For standard console Makefiles the generator should be: - "NMake Makefiles" on Windows - "Unix Makefiles" on Linux
variable: Variables customize how the build will be generated.
Useful CMake variables (case sensitive):
* USE_HDF: ON|OFF. (Deprecated) Default OFF If ON, CrysFML will be able to read NeXuS input data files. * GUI: ON|OFF. Default OFF If OFF, only CrysFML will be built. If ON, both CrysFML and WCrysFML libraries will be built * ARCH32: ON|OFF Default ON If ON 32-bits architecture is built * HEAP_ARRAYS: ON|OFF Default OFF Put arrays in heap instead of stack (only for Windows ifort) * PYTHON_API: ON|OFF Default OFF If ON, build the Python API * CMAKE_Fortran_COMPILER: ifort|g95|gfortran. Default ifort. Sets the compiler to use for the build. * CMAKE_BUILD_TYPE: Release|Debug|RelWithDebInfo|MinSizeRel. Default Release. Sets the build type for make based generators. * CMAKE_INSTALL_PREFIX Default /usr/lib/libcrysfml (Unix) C:\Program Files\libcrysfml (Windows). Path where the library will be installed if "make install" is invoked or the "INSTALL" target is built. * CRYSFML_PREFIX Default crysfml. Sets the name of the subdirectory within CMAKE_INSTALL_PREFIX where crysfml will be installed. * WCRYSFML_PREFIX Default wcrysfml. Sets the name of the subdirectory within CMAKE_INSTALL_PREFIX where wcrysfml will be installed.
-
the final step is now to build and install the library. The command to invoke will depend on the generator used for the build.
Examples:
- Unix: make install
- Window: nmake install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for CFML-0.0.3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5dcfd00f031fc156e5a499decae200add6576c8312814eac88083724488812 |
|
MD5 | f0441e0eef5d07ebc211b208f382e037 |
|
BLAKE2b-256 | 20e89891a393a34bce70f416d1c10b670b173fcb7083a498d1015a86c562ecb6 |
Hashes for CFML-0.0.3-py3-none-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a85fe7ddb3b50fe62488270793ff5760a399724734a13188b9325f9b8787adc9 |
|
MD5 | ea5146f67f0218415bd8834706e99e91 |
|
BLAKE2b-256 | b1067a42394ff4271c32e67d3c7608ce6b1fea11c7bfd1e66fe3532bafe35802 |
Hashes for CFML-0.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc78965797ae9fa0a2c9eca70f5d681712719db64b1235ffb2ab8bf7763998af |
|
MD5 | 4c07155104e6f309b74c6ceb357e301b |
|
BLAKE2b-256 | b66e4c6209983a248742e8c873a878f809086bc718bff3ef2c2c628a99689d41 |
Hashes for CFML-0.0.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fbb320b005b9fd85c67a2793137475d0621a3091bb640b9adf77ffccd1aac4e |
|
MD5 | ec0abb49f451bca1c777b8b4279319a6 |
|
BLAKE2b-256 | 0981d37ab02242160dd3dbd6e3e4a3b57b4112f04d04312eb774590903f7169a |
Hashes for CFML-0.0.3-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f11d5164a3e254005a77915aecd796918736f0772297325bf2749640050f9a |
|
MD5 | 541018fd294afcb0c3fdfe5e33d86211 |
|
BLAKE2b-256 | 2097fa682237faa3c89664d2c968be6a71486f45de3982c74d3f9710363379b0 |
Hashes for CFML-0.0.3-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c14f85297b9c437ff75014016142fbeca9455feec33a52ed78b3b94259e45444 |
|
MD5 | 80fcdc33feeed80659ffc9631b52bb15 |
|
BLAKE2b-256 | 7d7bafe24f72b97ec27e7f522cf87daecf5c0c340ce7ce6d19af2c7b737253cc |