cmake_minimum_required(VERSION 2.8.9)

set(TARGET_OTA_OPERATIONS_APP ota_operations_app)

pkg_check_modules(TELUXPLATFORM REQUIRED telux-platform)

add_compile_options(${TELUXPLATFORM_CFLAGS})

set(SOURCES
    OtaOperationsApp.cpp
    ../../../common/utils/Utils.cpp
)

add_executable (${TARGET_OTA_OPERATIONS_APP} ${SOURCES})
target_compile_options(${TARGET_OTA_OPERATIONS_APP} PRIVATE -std=c++11 -Wall -Werror)
target_link_libraries(${TARGET_OTA_OPERATIONS_APP} ${TELUXPLATFORM_LIBRARIES})

# install to target
install ( TARGETS ${TARGET_OTA_OPERATIONS_APP}
          RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
