build: clean up CMakeLists.txt and install pdb files alongside dlls
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
add_definitions (-DHAVE_CONFIG_H)
|
||||
|
||||
set(SOURCES
|
||||
gstpixcisrc.c)
|
||||
set (SOURCES
|
||||
gstpixcisrc.c)
|
||||
|
||||
set(HEADERS
|
||||
gstpixcisrc.h)
|
||||
set (HEADERS
|
||||
gstpixcisrc.h)
|
||||
|
||||
include_directories(AFTER
|
||||
${XCLIB_INCLUDE_DIR}
|
||||
.)
|
||||
include_directories (AFTER
|
||||
${XCLIB_INCLUDE_DIR})
|
||||
|
||||
add_library(libgstpixci MODULE
|
||||
set (libname libgstpixci)
|
||||
|
||||
add_library (${libname} MODULE
|
||||
${SOURCES}
|
||||
${HEADERS})
|
||||
|
||||
target_link_libraries(libgstpixci
|
||||
target_link_libraries (${libname}
|
||||
${GLIB2_LIBRARIES}
|
||||
${GOBJECT_LIBRARIES}
|
||||
${GSTREAMER_LIBRARY}
|
||||
@@ -22,5 +23,7 @@ target_link_libraries(libgstpixci
|
||||
${GSTREAMER_VIDEO_LIBRARY}
|
||||
${XCLIB_LIBRARIES})
|
||||
|
||||
install(TARGETS libgstpixci
|
||||
LIBRARY DESTINATION lib/gstreamer-0.10)
|
||||
set (pdbfile "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${libname}.pdb")
|
||||
install (FILES ${pdbfile} DESTINATION lib/gstreamer-1.0)
|
||||
install(TARGETS ${libname}
|
||||
LIBRARY DESTINATION lib/gstreamer-1.0)
|
||||
Reference in New Issue
Block a user