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
583cafa9
Unverified
Commit
583cafa9
authored
Sep 07, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cmake' of github.com:PDB-REDO/libcifpp into cmake
parents
01da6652
e900cd1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
23 deletions
+15
-23
.gitignore
+2
-0
CMakeLists.txt
+13
-23
No files found.
.gitignore
View file @
583cafa9
...
@@ -9,3 +9,4 @@ test/rename-compound-test
...
@@ -9,3 +9,4 @@ test/rename-compound-test
tools/update-dictionary-script
tools/update-dictionary-script
data/
data/
CMakeSettings.json
CMakeSettings.json
msvc/
\ No newline at end of file
CMakeLists.txt
View file @
583cafa9
...
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
...
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
# set the project name
# set the project name
project
(
cifpp VERSION 1.1.0 LANGUAGES CXX
)
project
(
cifpp VERSION 1.1.0 LANGUAGES CXX
)
list
(
AP
PEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
list
(
PRE
PEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
enable_testing
()
enable_testing
()
...
@@ -86,18 +86,8 @@ if(MSVC)
...
@@ -86,18 +86,8 @@ if(MSVC)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
CACHE PATH
"..."
FORCE
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
CACHE PATH
"..."
FORCE
)
endif
()
endif
()
# Find out the processor type for the target
# for mrc, just in case
if
(
${
CMAKE_SYSTEM_PROCESSOR
}
STREQUAL
"AMD64"
)
list
(
APPEND CMAKE_PREFIX_PATH
"$ENV{LOCALAPPDATA}/mrc"
)
set
(
COFF_TYPE
"x64"
)
elseif
(
${
CMAKE_SYSTEM_PROCESSOR
}
STREQUAL
"i386"
)
set
(
COFF_TYPE
"x86"
)
elseif
(
${
CMAKE_SYSTEM_PROCESSOR
}
STREQUAL
"ARM64"
)
set
(
COFF_TYPE
"arm64"
)
else
()
message
(
FATAL_ERROR
"Unsupported or unknown processor type
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
endif
()
set
(
COFF_SPEC
"--coff=
${
COFF_TYPE
}
"
)
endif
()
endif
()
if
(
UNIX AND NOT APPLE AND NOT BUILD_FOR_CCP4 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
if
(
UNIX AND NOT APPLE AND NOT BUILD_FOR_CCP4 AND CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
...
@@ -130,7 +120,8 @@ set(THREADS_PREFER_PTHREAD_FLAG)
...
@@ -130,7 +120,8 @@ set(THREADS_PREFER_PTHREAD_FLAG)
find_package
(
Threads
)
find_package
(
Threads
)
set
(
Boost_DETAILED_FAILURE_MSG ON
)
set
(
Boost_DETAILED_FAILURE_MSG ON
)
find_package
(
Boost 1.71.0 REQUIRED COMPONENTS system iostreams regex date_time program_options
)
set
(
Boost_DEBUG ON
)
find_package
(
Boost 1.70.0 REQUIRED COMPONENTS system iostreams regex date_time program_options
)
# find_package(ZLIB)
# find_package(ZLIB)
# find_package(BZip2)
# find_package(BZip2)
...
@@ -360,13 +351,6 @@ option(CIFPP_BUILD_TESTS "Build test exectuables" OFF)
...
@@ -360,13 +351,6 @@ option(CIFPP_BUILD_TESTS "Build test exectuables" OFF)
if
(
CIFPP_BUILD_TESTS
)
if
(
CIFPP_BUILD_TESTS
)
if
(
USE_RSRC
)
add_custom_command
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp_test_rsrc.obj
COMMAND
${
MRC
}
-o
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp_test_rsrc.obj
${
CMAKE_SOURCE_DIR
}
/rsrc/mmcif_pdbx_v50.dic
${
COFF_SPEC
}
)
set
(
CIFPP_TEST_RESOURCE
${
CMAKE_CURRENT_BINARY_DIR
}
/cifpp_test_rsrc.obj
)
endif
()
list
(
APPEND CIFPP_tests
list
(
APPEND CIFPP_tests
# pdb2cif
# pdb2cif
rename-compound
rename-compound
...
@@ -385,6 +369,10 @@ if(CIFPP_BUILD_TESTS)
...
@@ -385,6 +369,10 @@ if(CIFPP_BUILD_TESTS)
target_link_libraries
(
${
CIFPP_TEST
}
Threads::Threads
${
Boost_LIBRARIES
}
cifpp
)
target_link_libraries
(
${
CIFPP_TEST
}
Threads::Threads
${
Boost_LIBRARIES
}
cifpp
)
if
(
USE_RSRC
)
mrc_target_resources
(
${
CIFPP_TEST
}
${
CMAKE_SOURCE_DIR
}
/rsrc/mmcif_pdbx_v50.dic
)
endif
()
if
(
${
ZLIB_FOUND
}
)
if
(
${
ZLIB_FOUND
}
)
target_link_libraries
(
${
CIFPP_TEST
}
ZLIB::ZLIB
)
target_link_libraries
(
${
CIFPP_TEST
}
ZLIB::ZLIB
)
endif
()
endif
()
...
@@ -410,4 +398,6 @@ if(CIFPP_BUILD_TESTS)
...
@@ -410,4 +398,6 @@ if(CIFPP_BUILD_TESTS)
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/test
)
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
/test
)
endforeach
()
endforeach
()
endif
()
endif
()
\ No newline at end of file
message
(
"Will install in
${
CMAKE_INSTALL_PREFIX
}
"
)
\ No newline at end of file
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