mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 14:11:49 +08:00
19 lines
477 B
CMake
19 lines
477 B
CMake
|
cmake_minimum_required(VERSION 3.13)
|
||
|
project(cityhash CXX)
|
||
|
|
||
|
add_library(cityhash STATIC src/city.cc)
|
||
|
|
||
|
target_include_directories(cityhash PUBLIC
|
||
|
$<INSTALL_INTERFACE:include>
|
||
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
||
|
)
|
||
|
|
||
|
install(TARGETS cityhash EXPORT cityhash-config
|
||
|
RUNTIME DESTINATION bin
|
||
|
ARCHIVE DESTINATION lib
|
||
|
LIBRARY DESTINATION lib
|
||
|
)
|
||
|
|
||
|
install(EXPORT cityhash-config DESTINATION share/cmake/cityhash)
|
||
|
install(FILES src/city.h DESTINATION include)
|