nv_pair_list_last: remove unused function
[oweals/opkg-lede.git] / src / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 PROJECT(opkg-cl C)
4
5 INCLUDE(CheckLibraryExists)
6
7 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libopkg)
8 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../libopkg ${CMAKE_CURRENT_SOURCE_DIR}/../libbb)
9
10 IF(STATIC_UBOX)
11         FIND_LIBRARY(ubox NAMES libubox.a)
12 ELSE()
13         FIND_LIBRARY(ubox NAMES ubox)
14 ENDIF()
15
16 ADD_EXECUTABLE(opkg-cl opkg-cl.c)
17 TARGET_LINK_LIBRARIES(opkg-cl opkg bb ${ubox})
18
19 CHECK_LIBRARY_EXISTS(pthread pthread_create "" NEED_PTHREAD)
20 IF(NEED_PTHREAD)
21         TARGET_LINK_LIBRARIES(opkg-cl pthread)
22 ENDIF()
23
24 INSTALL(TARGETS opkg-cl RUNTIME DESTINATION bin)