mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-26 23:05:25 +00:00
29cbd06ab2
* Enable running of macOS packaging in GHA, most of the work done in dedbabde56
* Cleanup breakpad handling
* Have single version of main executable in folder expected by macOS and most tools instead of executable+symlink+shell script
* Handle Breakpad library lookup in more CMake way using FindBreakpad just like it's done on other platforms and packages
* Refactor error handling in some of the shell scripts to use `set -e` instead of `|| exit 1` for each command.
* Fix DMG background setup
24 lines
1.4 KiB
CMake
24 lines
1.4 KiB
CMake
set(CUTTER_DIR_NAME "RizinOrg/Cutter")
|
|
if(WIN32)
|
|
set(CMAKE_INSTALL_BINDIR "." CACHE PATH "Executable install directory")
|
|
set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "Include install directory")
|
|
set(CMAKE_INSTALL_LIBDIR "lib" CACHE PATH "Library install directory")
|
|
set(CMAKE_INSTALL_DATAROOTDIR "./" CACHE PATH "Resource installation directory")
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}" CACHE PATH "Resource installation directory")
|
|
elseif(APPLE)
|
|
if (CUTTER_ENABLE_PACKAGING)
|
|
set(CMAKE_INSTALL_INCLUDEDIR "include" CACHE PATH "Include install directory")
|
|
set(CMAKE_INSTALL_LIBDIR "lib" CACHE PATH "Library install directory")
|
|
set(CMAKE_INSTALL_DATAROOTDIR "./" CACHE PATH "Resource installation directory")
|
|
set(CMAKE_INSTALL_BINDIR "../MacOS" CACHE PATH "Executable install directory") # BUNDLE step sets prefix to Resources
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}" CACHE PATH "Resource installation directory")
|
|
else()
|
|
include(GNUInstallDirs)
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}/${CUTTER_DIR_NAME}" CACHE PATH "Resource installation directory")
|
|
endif()
|
|
else()
|
|
include(GNUInstallDirs)
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}/${CUTTER_DIR_NAME}" CACHE PATH "Resource installation directory")
|
|
endif()
|
|
set(ConfigPackageLocation "${CMAKE_INSTALL_LIBDIR}/Cutter" CACHE PATH "Cmake file install location")
|