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
efb1da49
Unverified
Commit
efb1da49
authored
Nov 08, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare for packaging
parent
1b9f37d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
CMakeLists.txt
+19
-10
libconfig
+1
-0
No files found.
CMakeLists.txt
View file @
efb1da49
...
@@ -103,7 +103,11 @@ set(CMAKE_THREAD_PREFER_PTHREAD)
...
@@ -103,7 +103,11 @@ set(CMAKE_THREAD_PREFER_PTHREAD)
set
(
THREADS_PREFER_PTHREAD_FLAG
)
set
(
THREADS_PREFER_PTHREAD_FLAG
)
find_package
(
Threads
)
find_package
(
Threads
)
find_package
(
libconfig REQUIRED
)
find_package
(
libconfig QUIET
)
if
(
NOT libconfig_FOUND
)
add_git_submodule
(
libconfig EXCLUDE_FROM_ALL
)
endif
()
find_package
(
gxrio QUIET
)
find_package
(
gxrio QUIET
)
if
(
NOT gxrio_FOUND
)
if
(
NOT gxrio_FOUND
)
...
@@ -176,15 +180,20 @@ if(ENABLE_TESTING)
...
@@ -176,15 +180,20 @@ if(ENABLE_TESTING)
add_test
(
NAME dssp-unit-test COMMAND $<TARGET_FILE:dssp-unit-test> --
${
PROJECT_SOURCE_DIR
}
/test
)
add_test
(
NAME dssp-unit-test COMMAND $<TARGET_FILE:dssp-unit-test> --
${
PROJECT_SOURCE_DIR
}
/test
)
endif
()
endif
()
option
(
DSSP_BUILD_INSTALLER
"Build an installer"
OFF
)
include
(
InstallRequiredSystemLibraries
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE"
)
if
(
DSSP_BUILD_INSTALLER
)
# Tarball generation
include
(
InstallRequiredSystemLibraries
)
set
(
CPACK_SOURCE_TGZ ON
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE"
)
set
(
CPACK_SOURCE_TBZ2 OFF
)
set
(
CPACK_SOURCE_TXZ OFF
)
set
(
CPACK_SOURCE_TZ OFF
)
set
(
CPACK_SOURCE_IGNORE_FILES
"/data/components.cif;/build;/.vscode;/.git"
)
set
(
CPACK_PACKAGE_FILE_NAME
"
${
PROJECT_NAME
}
-
${
PROJECT_VERSION
}
"
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
${
CPACK_PACKAGE_FILE_NAME
}
)
# NSIS options
# NSIS options
set
(
CPACK_NSIS_MODIFY_PATH ON
)
set
(
CPACK_NSIS_MODIFY_PATH ON
)
# configuration done, include CPack
# configuration done, include CPack
include
(
CPack
)
include
(
CPack
)
endif
()
libconfig
@
ecbd393f
Subproject commit ecbd393f79946b904b309b7cefb44bcfe926b75f
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