* update macOS autobuild yaml * updates */CMakeLists* for macOS autobuild compatibility * "" a dir for cmake * Un empty an empty EXTRA_INCDIR * use a cmake operator * Use the . dir to un-empty a string * fix minutes timer in macos yaml * test & skip instead of load & include * disregard fractional part of minutes in mac yaml * add another cmake test * fix typo in mac yaml * fix other part of same typo * correct a filename in mac yaml * test all include dirs * fix of mac yaml * mac:fix a path in yaml * mac:and its antecedent * options.h include a dir * test __has_include (gcc 5.* & up & clang) * remove a printf() in mac yaml * mac:change a "" and an elseif() to else() * fix a whitespace error * fix 2 whitespace errors * ZULU>UTC * add a "UTC * on the other side of the " * mac:properly set default LOCAL_PREFIX in CACHE * use of zsh subshells in macos yaml * mac:remove some && * mac:remove some " * mac:floating point divisors * mac:use double paren (()) * mac:add a dir * mac:floatize with decimal point * mac:zsh -c certain lines * remove a marker
72 lines
3.6 KiB
CMake
72 lines
3.6 KiB
CMake
file(GLOB LANGUAGEFILES "languages/*")
|
|
file(GLOB SOUNDFILES "sounds/*")
|
|
file(GLOB INPUTICCFILES "iccprofiles/input/*")
|
|
file(GLOB OUTPUTICCFILES "iccprofiles/output/*")
|
|
file(GLOB DCPFILES "dcpprofiles/*")
|
|
file(GLOB FONTS "fonts/*")
|
|
|
|
set(PROFILESDIR "profiles")
|
|
set(THEMEDIR "themes")
|
|
|
|
file(GLOB IMG_SVG LIST_DIRECTORIES false "images/svg/*")
|
|
file(GLOB IMG_PNG LIST_DIRECTORIES false "images/png/*")
|
|
file(GLOB IMG_ICO LIST_DIRECTORIES false "images/*")
|
|
|
|
if(WIN32)
|
|
set(OPTIONSFILE "options/options.win")
|
|
elseif(APPLE)
|
|
set(OPTIONSFILE "options/options.osx")
|
|
else()
|
|
set(OPTIONSFILE "options/options.lin")
|
|
endif()
|
|
|
|
if(WIN32)
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/WindowsInnoSetup.iss" DESTINATION ${BINDIR})
|
|
endif()
|
|
|
|
if(UNIX)
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/rawtherapee.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/rawtherapee.desktop")
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/rawtherapee.desktop" DESTINATION ${DESKTOPDIR})
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-16.png" DESTINATION "${ICONSDIR}/hicolor/16x16/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-24.png" DESTINATION "${ICONSDIR}/hicolor/24x24/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-32.png" DESTINATION "${ICONSDIR}/hicolor/32x32/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-48.png" DESTINATION "${ICONSDIR}/hicolor/48x48/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-64.png" DESTINATION "${ICONSDIR}/hicolor/64x64/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-128.png" DESTINATION "${ICONSDIR}/hicolor/128x128/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/png/rawtherapee-logo-256.png" DESTINATION "${ICONSDIR}/hicolor/256x256/apps" RENAME rawtherapee.png)
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/images/svg/rt-logo.svg" DESTINATION "${ICONSDIR}/hicolor/scalable/apps" RENAME rawtherapee.svg)
|
|
endif()
|
|
|
|
install(FILES ${LANGUAGEFILES} DESTINATION "${DATADIR}/languages")
|
|
install(FILES ${SOUNDFILES} DESTINATION "${DATADIR}/sounds")
|
|
install(FILES ${INPUTICCFILES} DESTINATION "${DATADIR}/iccprofiles/input")
|
|
install(FILES ${OUTPUTICCFILES} DESTINATION "${DATADIR}/iccprofiles/output")
|
|
install(FILES ${DCPFILES} DESTINATION "${DATADIR}/dcpprofiles")
|
|
install(FILES ${OPTIONSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ RENAME options)
|
|
if(WIN32)
|
|
install(FILES ${FONTS} DESTINATION "${DATADIR}/fonts")
|
|
endif()
|
|
|
|
install(DIRECTORY "${PROFILESDIR}" DESTINATION "${DATADIR}" FILES_MATCHING PATTERN "*.pp3")
|
|
install(DIRECTORY "${THEMEDIR}" DESTINATION "${DATADIR}")
|
|
|
|
install(FILES ${IMG_SVG} DESTINATION "${DATADIR}/images")
|
|
install(FILES ${IMG_PNG} DESTINATION "${DATADIR}/images")
|
|
install(FILES ${IMG_ICO} DESTINATION "${DATADIR}/images")
|
|
|
|
if(APPLE)
|
|
# CMake escapes first item quote character. Do not remove 'DUMMY_VARIABLE='
|
|
set(MACOSX_BUNDLE_COMMAND DUMMY_VARIABLE=
|
|
PROJECT_NAME=${PROJECT_NAME}
|
|
PROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}"
|
|
CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
|
GTK_PREFIX="${GTK_PREFIX}")
|
|
list(APPEND MACOSX_BUNDLE_COMMAND PROC_BIT_DEPTH=64)
|
|
list(APPEND MACOSX_BUNDLE_COMMAND sh ${PROJECT_SOURCE_DIR}/tools/osx/macosx_bundle.sh)
|
|
|
|
add_custom_target(macosx_bundle
|
|
COMMAND ${MACOSX_BUNDLE_COMMAND}
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/build
|
|
COMMENT "Creating macOS bundle")
|
|
endif()
|