cmake: Correctly set te build target for the modules and for vlc.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 00:27:02 +0000 (00:27 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 00:27:02 +0000 (00:27 +0000)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/include/vlc_module_funcs.cmake

index dd11402..3c98a2c 100644 (file)
@@ -9,7 +9,7 @@ add_definitions(-DPLUGIN_PATH=\\"${CMAKE_INSTALL_PREFIX}/lib/vlc\\")
 add_executable(vlc vlc.c)
 target_link_libraries(vlc libvlc)
 
-install_programs(/bin FILES vlc)
+install_targets(/bin vlc)
 
 # libvlc
 
index cb233a0..01452bc 100644 (file)
@@ -12,6 +12,7 @@ MACRO(vlc_add_module module_name)
         if (VLC_${module_name}_LINK_LIBRARIES)
             target_link_libraries( vlc_${module_name} ${VLC_${module_name}_LINK_LIBRARIES})
         endif (VLC_${module_name}_LINK_LIBRARIES)
+        install_targets(/modules vlc_${module_name})
     endif(ENABLE_VLC_MODULE_${module_name})
 ENDMACRO(vlc_add_module)