18 lines
563 B
CMake
18 lines
563 B
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(modem-auto-config C)
|
|
|
|
# Use 64-bit off_t on 32-bit Linux
|
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
# ensure 64bit offsets are used for filesystem accesses for 32bit compilation
|
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
|
endif()
|
|
|
|
|
|
add_executable(modem-auto-config modem_auto_config.c)
|
|
|
|
target_link_libraries(modem-auto-config hybris-common android-properties)
|
|
|
|
|
|
install (TARGETS modem-auto-config DESTINATION sbin)
|
|
install (FILES modem-auto-config.service DESTINATION /lib/systemd/system)
|