mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 15:09:01 +08:00
5771eef70b
* [getopt-win32] Missing include directory in package * [getopt-win32] Update port version
28 lines
595 B
CMake
28 lines
595 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(getopt-win32 C)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
add_definitions(-DEXPORTS_GETOPT)
|
|
else()
|
|
add_definitions(-DSTATIC_GETOPT)
|
|
endif()
|
|
|
|
add_library(getopt getopt.c)
|
|
|
|
install(
|
|
TARGETS getopt
|
|
EXPORT unofficial-getopt-win32
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
INCLUDES DESTINATION include
|
|
)
|
|
|
|
install(
|
|
EXPORT unofficial-getopt-win32
|
|
NAMESPACE unofficial::getopt-win32::
|
|
DESTINATION share/unofficial-getopt-win32
|
|
FILE unofficial-getopt-win32-config.cmake
|
|
)
|