mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 17:39:00 +08:00
5f3345eb81
* [modp-base64] Add missing header files * update vcpkg.json * update version * add license * update version * update CMakeLists.txt * update version * remove blank line * update version
31 lines
745 B
CMake
31 lines
745 B
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(libmodpbase64 C)
|
|
|
|
if(MSVC)
|
|
add_compile_options(/wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
configure_file(config.h.cmake config.h @ONLY)
|
|
|
|
include_directories(. ${SOURCE_PATH}/src ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
add_library(libmodpbase64 ${SOURCE_PATH}/src/modp_b64.c libmodpbase64.def)
|
|
|
|
install(
|
|
TARGETS libmodpbase64
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(
|
|
FILES
|
|
"${SOURCE_PATH}/src/extern_c_begin.h"
|
|
"${SOURCE_PATH}/src/extern_c_end.h"
|
|
"${SOURCE_PATH}/src/modp_b64.h"
|
|
"${SOURCE_PATH}/src/modp_stdint.h"
|
|
DESTINATION include
|
|
)
|
|
endif()
|