vcpkg/ports/fdlibm/CMakeLists.txt
atkawa7 087691c94a fdlibm init (#4165)
* 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
2018-11-06 13:56:40 -08:00

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()