mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-04 16:58:24 -05:00
15 lines
362 B
CMake
Executable File
15 lines
362 B
CMake
Executable File
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/manual-link
|
|
LIBRARY DESTINATION lib/manual-link
|
|
)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
install(FILES gettimeofday.h DESTINATION include)
|
|
endif()
|