Skip to content

Commit

Permalink
Merge pull request CatxFish#35 from jktjkt/cmake-use-correct-prefix
Browse files Browse the repository at this point in the history
build: determine lib|lib32|lib64 prefix via standard CMake module
  • Loading branch information
CatxFish authored Nov 24, 2020
2 parents 6b983f3 + 18243ae commit c607873
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cmake_minimum_required(VERSION 3.5)
project(obs-v4l2sink)
include(GNUInstallDirs)


include(external/FindLibObs.cmake)
Expand Down Expand Up @@ -44,8 +45,8 @@ endif()
set_target_properties(v4l2sink PROPERTIES PREFIX "")

install(TARGETS v4l2sink
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/obs-plugins)

install(DIRECTORY locale/
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/v4l2sink/locale")
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/obs/obs-plugins/v4l2sink/locale")

0 comments on commit c607873

Please sign in to comment.