Skip to content

Commit

Permalink
Merge pull request #1636 from cmuellner/cmake-build-fedora
Browse files Browse the repository at this point in the history
Adjust CMake build behavior to match Qt project files
  • Loading branch information
mcallegari authored Nov 10, 2024
2 parents 8b8049b + c5a5d5b commit 9e273b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
11 changes: 7 additions & 4 deletions plugins/velleman/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ else()
)
endif()

install(TARGETS ${module_name}
LIBRARY DESTINATION ${INSTALLROOT}/${PLUGINDIR}
RUNTIME DESTINATION ${INSTALLROOT}/${PLUGINDIR}
)
# Installation only on Windows; Unix targets are built only for unit testing.
if(WIN32)
install(TARGETS ${module_name}
LIBRARY DESTINATION ${INSTALLROOT}/${PLUGINDIR}
RUNTIME DESTINATION ${INSTALLROOT}/${PLUGINDIR}
)
endif()
1 change: 0 additions & 1 deletion resources/resources.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TEMPLATE = subdirs

!qmlui: SUBDIRS += docs
SUBDIRS += fixtures
SUBDIRS += gobos
SUBDIRS += inputprofiles
Expand Down
6 changes: 3 additions & 3 deletions variables.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if (WIN32)
elseif (APPLE)
set(LIBSDIR "Frameworks")
elseif (UNIX)
set(LIBSDIR "lib/${CMAKE_C_LIBRARY_ARCHITECTURE}")
set(LIBSDIR "${CMAKE_INSTALL_LIBDIR}")
endif ()

if (ANDROID)
Expand Down Expand Up @@ -287,9 +287,9 @@ elseif (APPLE)
set(PLUGINDIR "PlugIns")
elseif (UNIX)
if (appimage)
set(PLUGINDIR "../lib/qt5/plugins/qlcplus")
set(PLUGINDIR "../lib/qt${QT_MAJOR_VERSION}/plugins/qlcplus")
else ()
set(PLUGINDIR "${LIBSDIR}/qt5/plugins/qlcplus")
set(PLUGINDIR "${LIBSDIR}/qt${QT_MAJOR_VERSION}/plugins/qlcplus")
endif ()
endif ()

Expand Down

0 comments on commit 9e273b5

Please sign in to comment.