mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 15:39:07 +08:00
15 lines
338 B
CMake
15 lines
338 B
CMake
|
cmake_minimum_required(VERSION 3.8)
|
||
|
project(gettimeofday C)
|
||
|
|
||
|
add_library(gettimeofday gettimeofday.c gettimeofday.def)
|
||
|
|
||
|
install(TARGETS gettimeofday
|
||
|
RUNTIME DESTINATION bin
|
||
|
ARCHIVE DESTINATION lib
|
||
|
LIBRARY DESTINATION lib
|
||
|
)
|
||
|
|
||
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||
|
install(FILES gettimeofday.h DESTINATION include)
|
||
|
endif()
|