macro(MakeInstallPrefix BASEPATH) # We don't want to install in default system location, install is really for the SDK, so call it for that if (ANDROID) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/android/${ANDROID_ABI}" CACHE PATH "scol dependencies install prefix" FORCE) elseif(WIN32 AND (WIN64 OR (CMAKE_SIZEOF_VOID_P EQUAL 8))) set (CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/windows/x64" CACHE PATH "scol dependencies install prefix" FORCE) elseif (WIN32) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/windows/x86" CACHE PATH "scol dependencies install prefix" FORCE) elseif (APPLE AND IOS) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/apple/IOS" CACHE PATH "scol dependencies install prefix" FORCE) elseif(APPLE AND NOT IOS) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/apple/OSX" CACHE PATH "scol dependencies install prefix" FORCE) elseif (SCOL_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/${SCOL_INSTALL_PREFIX}" CACHE PATH "scol dependencies install prefix" FORCE) elseif (PIZERO) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/RPIZERO" CACHE PATH "scol dependencies install prefix" FORCE) elseif (PITHREE) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/RPI3" CACHE PATH "scol dependencies install prefix" FORCE) elseif (PIFOUR) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/RPI4" CACHE PATH "scol dependencies install prefix" FORCE) elseif (RPI) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/RPI2" CACHE PATH "scol dependencies install prefix" FORCE) else (LINUX) set(CMAKE_INSTALL_PREFIX "${BASEPATH}/sdk/linux" CACHE PATH "scol dependencies install prefix" FORCE) endif() message("Scol install path: ${CMAKE_INSTALL_PREFIX}") endmacro()