Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
bfbbeb90
Unverified
Commit
bfbbeb90
authored
Apr 03, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix makefile to create shared libraries when requested to do so
example should work when there is no components.cif file yet
parent
588e0753
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
CMakeLists.txt
+9
-6
examples/example.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
bfbbeb90
...
...
@@ -27,7 +27,7 @@ cmake_minimum_required(VERSION 3.23)
# set the project name
project
(
libcifpp
VERSION 7.0.
4
VERSION 7.0.
5
LANGUAGES CXX
)
list
(
PREPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
...
...
@@ -331,7 +331,7 @@ set(project_headers
include/cif++/validate.hpp
)
add_library
(
cifpp
STATIC
)
add_library
(
cifpp
)
add_library
(
cifpp::cifpp ALIAS cifpp
)
target_sources
(
cifpp
...
...
@@ -494,11 +494,14 @@ if(PROJECT_IS_TOP_LEVEL OR BUILD_FOR_CCP4)
FILE
"cifpp-targets.cmake"
DESTINATION lib/cmake/cifpp
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ddl.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_pdbx.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ma.dic
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
if
(
CIFPP_DATA_DIR AND CIFPP_DOWNLOAD_CCD
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ddl.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_pdbx.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ma.dic
${
COMPONENTS_CIF
}
install
(
FILES
${
COMPONENTS_CIF
}
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
endif
()
...
...
examples/example.cpp
View file @
bfbbeb90
...
...
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
exit
(
1
);
}
cif
::
file
file
=
cif
::
pdb
::
read
(
argv
[
1
]);
cif
::
file
file
(
argv
[
1
]);
if
(
file
.
empty
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment