mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:49:08 +08:00
33 lines
635 B
CMake
33 lines
635 B
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(libmodpbase64 C)
|
|
|
|
if(MSVC)
|
|
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/config.h" @ONLY)
|
|
|
|
|
|
include_directories(src ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
add_library(libmodpbase64 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 src/modp_b64.h
|
|
DESTINATION include
|
|
)
|
|
endif()
|