mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
Merge branch 'cmake'
This commit is contained in:
commit
d45cb7ef3a
14 changed files with 131 additions and 21 deletions
|
|
@ -13,9 +13,20 @@ set(miracle-dhcp_SRCS dhcp.c
|
|||
|
||||
add_executable(miracle-dhcp ${miracle-dhcp_SRCS})
|
||||
|
||||
target_link_libraries(miracle-dhcp ${KDE4_KDECORE_LIBS})
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules (GLIB2 REQUIRED glib-2.0)
|
||||
pkg_check_modules (UDEV REQUIRED libudev)
|
||||
link_directories( ${UDEV_LIBRARY_DIRS})
|
||||
include_directories( ${UDEV_INCLUDE_DIRS})
|
||||
target_link_libraries(miracle-dhcp ${UDEV_LIBRARIES})
|
||||
link_directories( ${GLIB2_LIBRARY_DIRS})
|
||||
include_directories( ${GLIB2_INCLUDE_DIRS})
|
||||
target_link_libraries(miracle-dhcp ${GLIB2_LIBRARIES})
|
||||
|
||||
target_link_libraries(miracle-dhcp miracle-shared)
|
||||
|
||||
install(TARGETS miracle-dhcp DESTINATION bin)
|
||||
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
||||
|
||||
|
||||
########### install files ###############
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
#include <unistd.h>
|
||||
#include "gdhcp.h"
|
||||
#include "shl_log.h"
|
||||
#include "config.h"
|
||||
|
||||
static const char *arg_netdev;
|
||||
static const char *arg_ip_binary = "/bin/ip";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue