vcpkg/ports/hungarian/CMakeLists.txt
Stefano Sinigardi f59ebe9102 [libhungarian] add port (#5849)
* [libhungarian] add port

* [hungarian] fix cmake targets
2019-03-28 14:36:44 -07:00

30 lines
724 B
CMake

cmake_minimum_required (VERSION 3.8)
project (hungarian C)
add_library(hungarian
${CMAKE_CURRENT_LIST_DIR}/libhungarian/hungarian.h
${CMAKE_CURRENT_LIST_DIR}/libhungarian/hungarian.c
)
target_include_directories(hungarian PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libhungarian>
$<INSTALL_INTERFACE:include>
)
set_target_properties(hungarian PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_LIST_DIR}/libhungarian/hungarian.h)
install(
TARGETS hungarian
EXPORT hungarian
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include
)
install(EXPORT hungarian
DESTINATION "share/hungarian"
FILE hungarianConfig.cmake
NAMESPACE hungarian::
)