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
c0555b6d
Unverified
Commit
c0555b6d
authored
Apr 10, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export CIFPP_SHARE_DIR variable when included as sub directory
parent
1ff9b6c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
CMakeLists.txt
+13
-9
No files found.
CMakeLists.txt
View file @
c0555b6d
...
@@ -441,6 +441,10 @@ if(CIFPP_DATA_DIR)
...
@@ -441,6 +441,10 @@ if(CIFPP_DATA_DIR)
target_compile_definitions
(
cifpp PUBLIC DATA_DIR=
"
${
CIFPP_DATA_DIR
}
"
)
target_compile_definitions
(
cifpp PUBLIC DATA_DIR=
"
${
CIFPP_DATA_DIR
}
"
)
endif
()
endif
()
if
(
NOT PROJECT_IS_TOP_LEVEL
)
set
(
CIFPP_SHARE_DIR
${
CIFPP_DATA_DIR
}
PARENT_SCOPE
)
endif
()
if
(
UNIX AND NOT BUILD_FOR_CCP4
)
if
(
UNIX AND NOT BUILD_FOR_CCP4
)
if
(
"
${
CMAKE_INSTALL_PREFIX
}
"
STREQUAL
"/usr/local"
)
if
(
"
${
CMAKE_INSTALL_PREFIX
}
"
STREQUAL
"/usr/local"
)
set
(
CIFPP_CACHE_DIR
set
(
CIFPP_CACHE_DIR
...
@@ -489,16 +493,16 @@ install(EXPORT cifpp
...
@@ -489,16 +493,16 @@ install(EXPORT cifpp
FILE
"cifpp-targets.cmake"
FILE
"cifpp-targets.cmake"
DESTINATION lib/cmake/cifpp
)
DESTINATION lib/cmake/cifpp
)
install
(
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ddl.dic
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ddl.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_pdbx.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_pdbx.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ma.dic
${
CMAKE_CURRENT_SOURCE_DIR
}
/rsrc/mmcif_ma.dic
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
if
(
CIFPP_DATA_DIR AND CIFPP_DOWNLOAD_CCD
)
if
(
CIFPP_DATA_DIR AND CIFPP_DOWNLOAD_CCD
)
install
(
FILES
${
COMPONENTS_CIF
}
install
(
FILES
${
COMPONENTS_CIF
}
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
DESTINATION
${
CMAKE_INSTALL_DATADIR
}
/libcifpp
)
endif
()
endif
()
set
(
CONFIG_TEMPLATE_FILE
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/cifpp-config.cmake.in
)
set
(
CONFIG_TEMPLATE_FILE
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/cifpp-config.cmake.in
)
...
...
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