mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 03:19:00 +08:00
12 lines
239 B
CMake
12 lines
239 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)
|