2020-10-28 12:28:04 +00:00
|
|
|
set(CUTTER_DIR_NAME "RizinOrg/Cutter")
|
2020-03-15 13:43:42 +00:00
|
|
|
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")
|
2020-06-17 09:35:26 +00:00
|
|
|
set(CMAKE_INSTALL_DATAROOTDIR "./" CACHE PATH "Resource installation directory")
|
|
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}" CACHE PATH "Resource installation directory")
|
2020-03-15 13:43:42 +00:00
|
|
|
elseif(APPLE)
|
|
|
|
include(GNUInstallDirs) #TODO: use appropriate paths for macOS
|
2020-06-17 09:35:26 +00:00
|
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}/${CUTTER_DIR_NAME}" CACHE PATH "Resource installation directory")
|
2020-03-15 13:43:42 +00:00
|
|
|
else()
|
|
|
|
include(GNUInstallDirs)
|
2020-06-17 09:35:26 +00:00
|
|
|
set(CUTTER_INSTALL_DATADIR "${CMAKE_INSTALL_DATAROOTDIR}/${CUTTER_DIR_NAME}" CACHE PATH "Resource installation directory")
|
2020-03-15 13:43:42 +00:00
|
|
|
endif()
|
2020-06-17 09:35:26 +00:00
|
|
|
set(ConfigPackageLocation "${CMAKE_INSTALL_LIBDIR}/Cutter" CACHE PATH "Cmake file install location")
|