mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:49:00 +08:00
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()
|