mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-14 18:31:54 +00:00
fix cmake dependencies for
This commit is contained in:
parent
72f61549d9
commit
175495c729
6 changed files with 8 additions and 2 deletions
|
@ -9,6 +9,7 @@ add_subdirectory(uibc)
|
||||||
set(miracled_SRCS miracled.h miracled.c)
|
set(miracled_SRCS miracled.h miracled.c)
|
||||||
add_executable(miracled ${miracled_SRCS})
|
add_executable(miracled ${miracled_SRCS})
|
||||||
target_link_libraries(miracled miracle-shared)
|
target_link_libraries(miracled miracle-shared)
|
||||||
|
target_link_libraries(miracled m)
|
||||||
install(TARGETS miracled DESTINATION bin)
|
install(TARGETS miracled DESTINATION bin)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/shared)
|
||||||
|
|
|
@ -24,6 +24,7 @@ if(READLINE_FOUND)
|
||||||
endif(READLINE_FOUND)
|
endif(READLINE_FOUND)
|
||||||
|
|
||||||
target_link_libraries(miracle-wifictl miracle-shared)
|
target_link_libraries(miracle-wifictl miracle-shared)
|
||||||
|
target_link_libraries(miracle-wifictl m)
|
||||||
target_link_libraries(miracle-wifictl ${GLIB2_LIBRARIES})
|
target_link_libraries(miracle-wifictl ${GLIB2_LIBRARIES})
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
|
@ -37,6 +38,7 @@ set(miracle-sinkctl_SRCS ctl.h
|
||||||
|
|
||||||
add_executable(miracle-sinkctl ${miracle-sinkctl_SRCS})
|
add_executable(miracle-sinkctl ${miracle-sinkctl_SRCS})
|
||||||
target_link_libraries(miracle-sinkctl ${GLIB2_LIBRARIES})
|
target_link_libraries(miracle-sinkctl ${GLIB2_LIBRARIES})
|
||||||
|
target_link_libraries(miracle-sinkctl m)
|
||||||
|
|
||||||
install(TARGETS miracle-sinkctl DESTINATION bin)
|
install(TARGETS miracle-sinkctl DESTINATION bin)
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ pkg_check_modules (UDEV REQUIRED libudev)
|
||||||
link_directories( ${UDEV_LIBRARY_DIRS})
|
link_directories( ${UDEV_LIBRARY_DIRS})
|
||||||
include_directories( ${UDEV_INCLUDE_DIRS})
|
include_directories( ${UDEV_INCLUDE_DIRS})
|
||||||
target_link_libraries(miracle-dhcp ${UDEV_LIBRARIES})
|
target_link_libraries(miracle-dhcp ${UDEV_LIBRARIES})
|
||||||
|
target_link_libraries(miracle-dhcp m)
|
||||||
link_directories( ${GLIB2_LIBRARY_DIRS})
|
link_directories( ${GLIB2_LIBRARY_DIRS})
|
||||||
include_directories( ${GLIB2_INCLUDE_DIRS})
|
include_directories( ${GLIB2_INCLUDE_DIRS})
|
||||||
target_link_libraries(miracle-dhcp ${GLIB2_LIBRARIES})
|
target_link_libraries(miracle-dhcp ${GLIB2_LIBRARIES})
|
||||||
|
|
|
@ -2,8 +2,8 @@ set(miracle-uibcctl_SRCS miracle-uibcctl.h
|
||||||
miracle-uibcctl.c)
|
miracle-uibcctl.c)
|
||||||
|
|
||||||
add_executable(miracle-uibcctl ${miracle-uibcctl_SRCS})
|
add_executable(miracle-uibcctl ${miracle-uibcctl_SRCS})
|
||||||
target_link_libraries(miracle-uibcctl PRIVATE miracle-shared)
|
target_link_libraries(miracle-uibcctl miracle-shared)
|
||||||
target_link_libraries(miracle-uibcctl PUBLIC m)
|
target_link_libraries(miracle-uibcctl m)
|
||||||
|
|
||||||
install(TARGETS miracle-uibcctl DESTINATION bin)
|
install(TARGETS miracle-uibcctl DESTINATION bin)
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ pkg_check_modules (UDEV REQUIRED libudev)
|
||||||
#link_directories( ${UDEV_LIBRARY_DIRS})
|
#link_directories( ${UDEV_LIBRARY_DIRS})
|
||||||
#include_directories( ${UDEV_INCLUDE_DIRS})
|
#include_directories( ${UDEV_INCLUDE_DIRS})
|
||||||
target_link_libraries(miracle-wifid ${UDEV_LIBRARIES})
|
target_link_libraries(miracle-wifid ${UDEV_LIBRARIES})
|
||||||
|
target_link_libraries(miracle-wifid m)
|
||||||
link_directories( ${GLIB2_LIBRARY_DIRS})
|
link_directories( ${GLIB2_LIBRARY_DIRS})
|
||||||
include_directories( ${GLIB2_INCLUDE_DIRS})
|
include_directories( ${GLIB2_INCLUDE_DIRS})
|
||||||
target_link_libraries(miracle-wifid ${GLIB2_LIBRARIES})
|
target_link_libraries(miracle-wifid ${GLIB2_LIBRARIES})
|
||||||
|
|
|
@ -20,6 +20,7 @@ if(CHECK_FOUND)
|
||||||
target_link_libraries(test_wpas ${GLIB2_LIBRARIES})
|
target_link_libraries(test_wpas ${GLIB2_LIBRARIES})
|
||||||
target_link_libraries(test_wpas ${CHECK_LIBRARIES})
|
target_link_libraries(test_wpas ${CHECK_LIBRARIES})
|
||||||
target_link_libraries(test_wpas ${CHECK_CFLAGS})
|
target_link_libraries(test_wpas ${CHECK_CFLAGS})
|
||||||
|
target_link_libraries(test_wpas m)
|
||||||
|
|
||||||
set(test_valgrind_SOURCES test_common.h test_valgrind.c)
|
set(test_valgrind_SOURCES test_common.h test_valgrind.c)
|
||||||
add_executable(test_valgrind ${test_valgrind_SOURCES})
|
add_executable(test_valgrind ${test_valgrind_SOURCES})
|
||||||
|
|
Loading…
Reference in a new issue