niimaqdxsrc: add 64-bit import library as NI doesn't provide one
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
|
||||
set (SOURCES
|
||||
set(SOURCES
|
||||
gstniimaqdx.c)
|
||||
|
||||
set (HEADERS
|
||||
set(HEADERS
|
||||
gstniimaqdx.h)
|
||||
|
||||
include_directories (AFTER
|
||||
include_directories(AFTER
|
||||
.
|
||||
${NIIMAQDX_INCLUDE_DIR})
|
||||
|
||||
@@ -14,13 +14,18 @@ add_library(libgstniimaqdx MODULE
|
||||
${SOURCES}
|
||||
${HEADERS} )
|
||||
|
||||
# National Instruments doesn't provide a .lib for 64-bit, so use our own
|
||||
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(NIIMAQDX_LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/win64/niimaqdx.lib")
|
||||
endif()
|
||||
|
||||
target_link_libraries(libgstniimaqdx
|
||||
general ${GLIB2_LIBRARIES}
|
||||
general ${GOBJECT_LIBRARIES}
|
||||
general ${GSTREAMER_LIBRARY}
|
||||
general ${GSTREAMER_BASE_LIBRARY}
|
||||
general ${GSTREAMER_VIDEO_LIBRARY}
|
||||
general ${NIIMAQDX_LIBRARIES})
|
||||
${GLIB2_LIBRARIES}
|
||||
${GOBJECT_LIBRARIES}
|
||||
${GSTREAMER_LIBRARY}
|
||||
${GSTREAMER_BASE_LIBRARY}
|
||||
${GSTREAMER_VIDEO_LIBRARY}
|
||||
${NIIMAQDX_LIBRARIES})
|
||||
|
||||
install (TARGETS libgstniimaqdx
|
||||
LIBRARY DESTINATION lib/gstreamer-0.10)
|
||||
|
||||
Reference in New Issue
Block a user