mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00

* [gettimeofday] create CONTROL * [gettimeofday] add source file * [gettimeofday] add header * [gettimeofday] create portfile * [gettimeofday] add cmakelists.txt * [gettimeofday/portfile] require static * [gettimeofday/portfile] set source path * [gettimeofday] create license * [gettimeofday] remove duplicate headers
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()
|