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
14a94999
Unverified
Commit
14a94999
authored
Sep 27, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix cmake files, pkg-config file
parent
0fafb80d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
CMakeLists.txt
+14
-3
libcifpp.pc.in
+2
-2
No files found.
CMakeLists.txt
View file @
14a94999
...
...
@@ -174,9 +174,7 @@ set(Boost_DETAILED_FAILURE_MSG ON)
set
(
Boost_USE_STATIC_LIBS ON
)
find_package
(
Boost 1.70.0 REQUIRED COMPONENTS system iostreams regex date_time program_options
)
find_package
(
ZLIB REQUIRED
)
include_directories
(
${
Boost_INCLUDE_DIR
}
)
find_package
(
ZLIB REQUIRED COMPONENTS zlibstatic
)
# Create a revision file, containing the current git version info
...
...
@@ -205,6 +203,7 @@ if(RECREATE_SYMOP_DATA)
add_executable
(
symop-map-generator
"
${
CMAKE_SOURCE_DIR
}
/tools/symop-map-generator.cpp"
)
target_link_libraries
(
symop-map-generator Threads::Threads
${
Boost_LIBRARIES
}
std::filesystem ZLIB::ZLIB
)
target_include_directories
(
symop-map-generator
${
Boost_INCLUDE_DIR
}
)
set
(
$ENV{CLIBD}
${
CLIBD
}
)
...
...
@@ -265,6 +264,8 @@ target_include_directories(cifpp
PUBLIC
"$<BUILD_INTERFACE:
${
PROJECT_SOURCE_DIR
}
/include>"
"$<INSTALL_INTERFACE:
${
CMAKE_INSTALL_INCLUDEDIR
}
>"
${
Boost_INCLUDE_DIR
}
${
ZLIB_INCLUDE_DIR
}
)
target_link_libraries
(
cifpp Threads::Threads
${
Boost_LIBRARIES
}
std::filesystem ZLIB::ZLIB
)
...
...
@@ -388,6 +389,16 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX})
set
(
libdir
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_LIBDIR
}
)
set
(
includedir
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_INCLUDEDIR
}
)
get_target_property
(
PRIVATE_LIBRARIES cifpp INTERFACE_LINK_LIBRARIES
)
foreach
(
LIB
${
PRIVATE_LIBRARIES
}
)
set
(
PRIVATE_LIBS
"
${
PRIVATE_LIBS
}
-l
${
LIB
}
"
)
endforeach
()
get_target_property
(
PRIVATE_INCLUDE_DIRS cifpp INTERFACE_INCLUDE_DIRECTORIES
)
foreach
(
INC
${
PRIVATE_INCLUDE_DIRS
}
)
set
(
PRIVATE_INC_DIRS
"
${
PRIVATE_INC_DIRS
}
-I
${
INC
}
"
)
endforeach
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/libcifpp.pc.in
${
CMAKE_CURRENT_BINARY_DIR
}
/libcifpp.pc.in @ONLY
)
file
(
GENERATE OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/libcifpp.pc
...
...
libcifpp.pc.in
View file @
14a94999
...
...
@@ -8,5 +8,5 @@ Name: libcifpp
Description:
C++
library
for
the
manipulation
of
mmCIF
files
.
Version:
@PACKAGE_VERSION@
Libs:
-L$
{
libdir
}
-lcifpp
Cflags:
-I$
{
includedir
}
Libs:
-L$
{
libdir
}
-lcifpp
@PRIVATE_LIBS@
Cflags:
-I$
{
includedir
}
@PRIVATE_INC_DIRS@
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