mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 10:37:10 +01:00
[nonius] properly install noniusConfig.cmake (#7258)
This commit is contained in:
parent
8b0a8ca3db
commit
84a0270693
30
ports/nonius/CMakeLists.txt
Normal file
30
ports/nonius/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.9)
|
||||||
|
cmake_policy(VERSION ${CMAKE_VERSION}) # use default policies of current cmake version
|
||||||
|
|
||||||
|
project(nonius)
|
||||||
|
|
||||||
|
add_library(nonius INTERFACE)
|
||||||
|
target_include_directories(nonius INTERFACE
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
|
$<INSTALL_INTERFACE:include>
|
||||||
|
)
|
||||||
|
|
||||||
|
if(NOT DISABLE_INSTALL_HEADERS)
|
||||||
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
|
||||||
|
DESTINATION include
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
install(TARGETS nonius
|
||||||
|
EXPORT noniusExport
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
ARCHIVE DESTINATION lib
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
EXPORT noniusExport
|
||||||
|
FILE noniusConfig.cmake
|
||||||
|
NAMESPACE Nonius::
|
||||||
|
DESTINATION share/nonius
|
||||||
|
)
|
@ -1,4 +1,4 @@
|
|||||||
Source: nonius
|
Source: nonius
|
||||||
Version: 2019-04-20
|
Version: 2019-04-20-1
|
||||||
Description: A C++ micro-benchmarking framework
|
Description: A C++ micro-benchmarking framework
|
||||||
Build-Depends: boost-algorithm, boost-lexical-cast, boost-math
|
Build-Depends: boost-algorithm, boost-lexical-cast, boost-math
|
||||||
|
@ -10,7 +10,19 @@ vcpkg_from_github(
|
|||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
)
|
)
|
||||||
|
|
||||||
file(COPY ${SOURCE_PATH}/include/${PORT} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||||
|
|
||||||
|
vcpkg_configure_cmake(
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
|
PREFER_NINJA
|
||||||
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||||
|
)
|
||||||
|
|
||||||
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT})
|
||||||
|
|
||||||
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user