mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 04:01:47 +08:00
087691c94a
* fdlibm init * fix links * Fix different hashes creation with google host * Move functions to script * Fix documentation * [vcpkg_from_git] Add SHA512 argument, switch to zip to better support Windows. * [fdlibm] Trigger rebuild * [vcpkg_from_git] Use FETCH_HEAD reference to support tags
29 lines
483 B
CMake
29 lines
483 B
CMake
cmake_minimum_required(VERSION 3.8)
|
|
project(fdlibm C)
|
|
|
|
file(GLOB fdlibm_SOURCES "*.c")
|
|
|
|
include_directories(".")
|
|
|
|
if(WIN32)
|
|
set(fdlibm_SOURCES ${fdlibm_SOURCES} libm5.def)
|
|
endif()
|
|
|
|
|
|
add_library(fdlibm ${fdlibm_SOURCES})
|
|
|
|
install(
|
|
TARGETS fdlibm
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib/manual-link
|
|
ARCHIVE DESTINATION lib/manual-link
|
|
)
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(
|
|
FILES
|
|
fdlibm.h
|
|
DESTINATION include
|
|
)
|
|
endif()
|