Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
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
dssp
Commits
abd9fdfa
Commit
abd9fdfa
authored
Apr 08, 2024
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix makefile
parent
57560472
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
23 deletions
+27
-23
CMakeLists.txt
+13
-11
libdssp/src/dssp-io.cpp
+3
-3
test/CMakeLists.txt
+11
-9
No files found.
CMakeLists.txt
View file @
abd9fdfa
...
...
@@ -98,7 +98,7 @@ set(THREADS_PREFER_PTHREAD_FLAG)
find_package
(
Threads
)
find_package
(
libmcfp QUIET
)
if
(
NOT
libmcfp_FOUND
)
if
(
NOT
(
libmcfp_FOUND OR TARGET libmcfp
)
)
include
(
FetchContent
)
if
(
CMAKE_VERSION GREATER_EQUAL 3.28
)
...
...
@@ -114,19 +114,21 @@ if(NOT libmcfp_FOUND)
FetchContent_MakeAvailable
(
libmcfp
)
endif
()
find_package
(
cifpp 7 QUIET
)
if
(
NOT TARGET cifpp AND NOT cifpp_FOUND
)
find_package
(
cifpp 7 QUIET
)
if
(
NOT cifpp_FOUND
)
set
(
CIFPP_DOWNLOAD_CCD OFF
)
if
(
NOT cifpp_FOUND
)
set
(
CIFPP_DOWNLOAD_CCD OFF
)
FetchContent_Declare
(
cifpp
${
EXLC
}
GIT_REPOSITORY https://github.com/pdb-redo/libcifpp.git
GIT_TAG v7.0.3
)
FetchContent_Declare
(
cifpp
${
EXLC
}
GIT_REPOSITORY https://github.com/pdb-redo/libcifpp.git
GIT_TAG v7.0.3
)
FetchContent_MakeAvailable
(
cifpp
)
FetchContent_MakeAvailable
(
cifpp
)
endif
()
endif
()
add_subdirectory
(
libdssp
)
...
...
libdssp/src/dssp-io.cpp
View file @
abd9fdfa
...
...
@@ -157,7 +157,7 @@ void writeDSSP(const dssp &dssp, std::ostream &os)
std
::
time_t
today
=
system_clock
::
to_time_t
(
system_clock
::
now
());
std
::
tm
*
tm
=
std
::
gmtime
(
&
today
);
std
::
string
version
=
kVersionNumber
;
std
::
string
version
=
k
libdssp
VersionNumber
;
if
(
version
.
length
()
<
10
)
version
.
insert
(
version
.
end
(),
10
-
version
.
length
(),
' '
);
...
...
@@ -877,8 +877,8 @@ void annotateDSSP(cif::datablock &db, const dssp &dssp, bool writeOther, bool wr
software
.
emplace
({
{
"pdbx_ordinal"
,
software
.
get_unique_id
(
""
)
},
{
"name"
,
"dssp"
},
{
"version"
,
kVersionNumber
},
{
"date"
,
kRevisionDate
},
{
"version"
,
k
libdssp
VersionNumber
},
{
"date"
,
k
libdssp
RevisionDate
},
{
"classification"
,
"model annotation"
}
});
}
test/CMakeLists.txt
View file @
abd9fdfa
find_package
(
Catch2 QUIET
)
if
(
NOT
(
Catch2_FOUND OR TARGET Catch2
))
find_package
(
Catch2 QUIET
)
if
(
NOT Catch2_FOUND
)
include
(
FetchContent
)
if
(
NOT Catch2_FOUND
)
include
(
FetchContent
)
FetchContent_Declare
(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.9
)
FetchContent_Declare
(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.9
)
FetchContent_MakeAvailable
(
Catch2
)
FetchContent_MakeAvailable
(
Catch2
)
set
(
Catch2_VERSION
"2.13.9"
)
set
(
Catch2_VERSION
"2.13.9"
)
endif
()
endif
()
add_executable
(
unit-test-dssp
${
CMAKE_CURRENT_SOURCE_DIR
}
/unit-test-dssp.cpp
${
PROJECT_SOURCE_DIR
}
/libdssp/src/dssp-io.cpp
)
...
...
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