early-access version 2853
This commit is contained in:
100
externals/vcpkg/ports/autodock-vina/CMakeLists.txt
vendored
Executable file
100
externals/vcpkg/ports/autodock-vina/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,100 @@
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
cmake_policy(VERSION 3.11)
|
||||
|
||||
project(autodock-vina)
|
||||
|
||||
set(GIT_VERSION v1.2.3)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
find_package(Boost REQUIRED COMPONENTS
|
||||
filesystem
|
||||
log
|
||||
math_tr1
|
||||
program_options
|
||||
random
|
||||
serialization
|
||||
thread
|
||||
timer
|
||||
)
|
||||
|
||||
file(GLOB SRC_AUTODOCK_VINA_LIBS
|
||||
"src/lib/*.cpp"
|
||||
)
|
||||
|
||||
file(GLOB SRC_AUTODOCK_VINA_SPLIT
|
||||
"src/split/*.cpp"
|
||||
)
|
||||
|
||||
file(GLOB HEADERS
|
||||
"src/lib/*.h"
|
||||
)
|
||||
|
||||
add_library(vina ${SRC_AUTODOCK_VINA_LIBS})
|
||||
add_library(vina_split ${SRC_AUTODOCK_VINA_SPLIT})
|
||||
|
||||
target_include_directories(vina
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
PRIVATE
|
||||
$<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
|
||||
)
|
||||
|
||||
target_include_directories(vina_split
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
PRIVATE
|
||||
$<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
|
||||
)
|
||||
|
||||
target_compile_definitions(vina
|
||||
PUBLIC
|
||||
-DVERSION=\"${GIT_VERSION}\"
|
||||
)
|
||||
|
||||
target_compile_definitions(vina_split
|
||||
PUBLIC
|
||||
-DVERSION=\"${GIT_VERSION}\"
|
||||
)
|
||||
|
||||
target_link_libraries(vina
|
||||
PRIVATE
|
||||
Boost::boost
|
||||
Boost::filesystem
|
||||
Boost::log
|
||||
Boost::math_tr1
|
||||
Boost::program_options
|
||||
Boost::random
|
||||
Boost::serialization
|
||||
Boost::thread
|
||||
Boost::timer
|
||||
)
|
||||
|
||||
target_link_libraries(vina_split
|
||||
PRIVATE
|
||||
Boost::boost
|
||||
Boost::filesystem
|
||||
Boost::log
|
||||
Boost::math_tr1
|
||||
Boost::program_options
|
||||
Boost::random
|
||||
Boost::serialization
|
||||
Boost::thread
|
||||
Boost::timer
|
||||
)
|
||||
|
||||
install(TARGETS vina EXPORT autodock-vina-config
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
||||
|
||||
install(TARGETS vina_split EXPORT autodock-vina-config
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
||||
|
||||
install(FILES ${HEADERS} DESTINATION include/autodock-vina)
|
||||
install(EXPORT autodock-vina-config NAMESPACE autodock-vina::autodock-vina:: DESTINATION share/autodock-vina)
|
||||
30
externals/vcpkg/ports/autodock-vina/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/autodock-vina/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ccsb-scripps/AutoDock-Vina
|
||||
REF v1.2.3
|
||||
SHA512 ea3d3008553665af5fbafa3b4dfe379df257d9c5b957d81a91ec8b92f06a8d0f4c2dfc30b515a64c0bc6dcc70acedfdd498c3bb9a21cac58e43d4da37d2ff606
|
||||
HEAD_REF develop
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(
|
||||
INSTALL "${SOURCE_PATH}/LICENSE"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
RENAME copyright
|
||||
)
|
||||
31
externals/vcpkg/ports/autodock-vina/vcpkg.json
vendored
Executable file
31
externals/vcpkg/ports/autodock-vina/vcpkg.json
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "autodock-vina",
|
||||
"version-semver": "1.2.3",
|
||||
"description": "AutoDock Vina is one of the fastest and most widely used open-source docking engines.",
|
||||
"homepage": "http://vina.scripps.edu/",
|
||||
"dependencies": [
|
||||
"boost-algorithm",
|
||||
"boost-array",
|
||||
"boost-filesystem",
|
||||
"boost-lexical-cast",
|
||||
"boost-log",
|
||||
"boost-math",
|
||||
"boost-optional",
|
||||
"boost-program-options",
|
||||
"boost-ptr-container",
|
||||
"boost-random",
|
||||
"boost-serialization",
|
||||
"boost-static-assert",
|
||||
"boost-thread",
|
||||
"boost-timer",
|
||||
"boost-utility",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user