[video] Fix bookmark thumbnails of rotated videos
[xbmc.git] / cmake / scripts / linux / PathSetup.cmake
blobf9f78ba622caa4631736650bb90cc01f30bb9b32
1 include(GNUInstallDirs)
3 if(NOT prefix)
4   set(prefix ${CMAKE_INSTALL_PREFIX})
5 else()
6   set(CMAKE_INSTALL_PREFIX ${prefix})
7 endif()
8 if(NOT exec_prefix)
9   set(exec_prefix ${prefix})
10 endif()
11 if(NOT libdir)
12   set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
13 endif()
14 if(NOT bindir)
15   set(bindir ${CMAKE_INSTALL_FULL_BINDIR})
16 endif()
17 if(NOT includedir)
18   set(includedir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
19 endif()
20 if(NOT datarootdir)
21   set(datarootdir ${CMAKE_INSTALL_FULL_DATAROOTDIR})
22 endif()
23 if(NOT datadir)
24   set(datadir ${CMAKE_INSTALL_FULL_DATADIR})
25 endif()
26 if(NOT docdir)
27   set(docdir ${CMAKE_INSTALL_FULL_DOCDIR})
28 endif()
30 list(APPEND final_message "-- PATH config --")
31 list(APPEND final_message "Prefix: ${prefix}")
32 list(APPEND final_message "Libdir: ${libdir}")
33 list(APPEND final_message "Bindir: ${bindir}")
34 list(APPEND final_message "Includedir: ${includedir}")
35 list(APPEND final_message "Datarootdir: ${datarootdir}")
36 list(APPEND final_message "Datadir: ${datadir}")
37 list(APPEND final_message "Docdir: ${docdir}")
39 set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/${APP_NAME_LC}\"
40                    -DINSTALL_PATH=\"${datarootdir}/${APP_NAME_LC}\")