Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install instructions to cmake rules #5

Merged
merged 3 commits into from
Jan 12, 2023

Conversation

justsz
Copy link
Contributor

@justsz justsz commented Jan 12, 2023

This PR adds the cmake ability to install the package.

The following is now possible:

cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DBUILD_SHARED_LIBS=Yes ..
cmake --build .
cmake --install .

Afterward, INSTALL_DIR will contain:

INSTALL_DIR
├── lib
│   ├── libfortran-yaml-c.so
│   ├── liblibyaml_interface.so
│   └── libyaml.so
└── modules
    ├── fortran_yaml_c_interface.mod
    ├── fortran_yaml_c.mod
    └── fortran_yaml_c_types.mod

@Nicholaswogan
Copy link
Owner

Thanks for this!

@Nicholaswogan Nicholaswogan merged commit 98a045c into Nicholaswogan:main Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants