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
2baf702e
Commit
2baf702e
authored
Oct 30, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for meta project
parent
ff306934
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
CMakeLists.txt
+6
-4
cmake/AddGitSubmodule.cmake
+9
-4
No files found.
CMakeLists.txt
View file @
2baf702e
...
...
@@ -6,10 +6,10 @@
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer
#
list of conditions and the following disclaimer
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
this list of conditions and the following disclaimer in the documentation
#
and/or other materials provided with the distribution.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
...
...
@@ -103,7 +103,9 @@ set(CMAKE_THREAD_PREFER_PTHREAD)
set
(
THREADS_PREFER_PTHREAD_FLAG
)
find_package
(
Threads
)
find_package
(
cifpp 5.0.0 REQUIRED
)
if
(
NOT PDB_REDO_META
)
find_package
(
cifpp 5.0.0 REQUIRED
)
endif
()
# The DSSP code is in a separate library, optionally to be used by others
add_library
(
dssp_library OBJECT
${
PROJECT_SOURCE_DIR
}
/src/DSSP.cpp
)
...
...
cmake/AddGitSubmodule.cmake
View file @
2baf702e
cmake_minimum_required
(
VERSION 3.19
)
cmake_minimum_required
(
VERSION 3.1
6..3.1
9
)
function
(
add_git_submodule dir
)
# add a Git submodule directory to CMake, assuming the
...
...
@@ -11,9 +11,14 @@ function(add_git_submodule dir)
find_package
(
Git REQUIRED
)
if
(
NOT EXISTS
${
dir
}
/CMakeLists.txt
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init --recursive --
${
dir
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
COMMAND_ERROR_IS_FATAL ANY
)
if
(
CMAKE_VERSION VERSION_GREATER_EQUAL 3.19
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init --recursive --
${
dir
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
COMMAND_ERROR_IS_FATAL ANY
)
else
()
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init --recursive --
${
dir
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
)
endif
()
endif
()
set
(
ENABLE_TESTING OFF
)
...
...
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