2018-03-19 23:33:49 +00:00
|
|
|
# Set the system name, either Darwin, Linux, or Windows
|
2018-03-20 00:26:35 +00:00
|
|
|
SET(CMAKE_SYSTEM_NAME @depends@)
|
2018-03-19 23:33:49 +00:00
|
|
|
SET(CMAKE_BUILD_TYPE release)
|
2018-03-20 00:26:35 +00:00
|
|
|
|
|
|
|
SET(STATIC true)
|
|
|
|
SET(UNBOUND_STATIC true)
|
|
|
|
|
|
|
|
# where is the target environment
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH @prefix@ /usr)
|
|
|
|
|
2018-03-19 23:33:49 +00:00
|
|
|
SET(ENV{PKG_CONFIG_PATH} @prefix@/lib/pkgconfig)
|
|
|
|
|
2018-05-02 15:11:02 +00:00
|
|
|
SET(LRELEASE_PATH @prefix@/native/bin CACHE FILEPATH "path to lrelease" FORCE)
|
|
|
|
|
2018-03-20 00:26:35 +00:00
|
|
|
SET(Readline_ROOT_DIR @prefix@)
|
|
|
|
|
|
|
|
SET(LIBUNWIND_INCLUDE_DIR @prefix@/include)
|
|
|
|
SET(LIBUNWIND_LIBRARIES @prefix@/lib/libunwind.a)
|
|
|
|
SET(LIBUNWIND_LIBRARY_DIRS @prefix@/lib)
|
|
|
|
|
2018-10-07 17:16:22 +00:00
|
|
|
SET(LIBUSB-1.0_LIBRARY @prefix@/lib/libusb-1.0.a)
|
|
|
|
SET(LIBUDEV_LIBRARY @prefix@/lib/libudev.a)
|
|
|
|
|
2018-03-20 00:26:35 +00:00
|
|
|
SET(ZMQ_INCLUDE_PATH @prefix@/include)
|
|
|
|
SET(ZMQ_LIB @prefix@/lib/libzmq.a)
|
|
|
|
|
2018-03-19 23:33:49 +00:00
|
|
|
SET(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT ON)
|
|
|
|
SET(BOOST_IGNORE_SYSTEM_PATH ON)
|
|
|
|
SET(BOOST_ROOT @prefix@)
|
|
|
|
SET(BOOST_LIBRARYDIR @prefix@/lib)
|
|
|
|
SET(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT OFF)
|
2018-09-22 18:07:33 +00:00
|
|
|
SET(BOOST_NO_SYSTEM_PATHS TRUE)
|
|
|
|
SET(BOOST_USE_STATIC_LIBS TRUE)
|
|
|
|
SET(BOOST_USE_STATIC_RUNTIME TRUE)
|
2018-03-19 23:33:49 +00:00
|
|
|
|
|
|
|
SET(OpenSSL_DIR @prefix@/lib)
|
2018-09-18 00:52:57 +00:00
|
|
|
SET(ARCHITECTURE @arch@)
|
2018-03-20 00:26:35 +00:00
|
|
|
|
|
|
|
# for libraries and headers in the target directories
|
|
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Find programs on host
|
|
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) # Find libs in target
|
|
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) # Find includes in target
|
|
|
|
|
2018-03-19 23:33:49 +00:00
|
|
|
# specify the cross compiler to be used. Darwin uses clang provided by the SDK.
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
|
|
|
SET(CMAKE_C_COMPILER @prefix@/native/bin/clang)
|
|
|
|
SET(CMAKE_C_COMPILER_TARGET x86_64-apple-darwin11)
|
|
|
|
SET(CMAKE_CXX_COMPILER @prefix@/native/bin/clang++ -stdlib=libc++)
|
|
|
|
SET(CMAKE_CXX_COMPILER_TARGET x86_64-apple-darwin11)
|
|
|
|
SET(_CMAKE_TOOLCHAIN_PREFIX x86_64-apple-darwin11-)
|
|
|
|
SET(APPLE True)
|
|
|
|
SET(BUILD_TAG "mac-x64")
|
|
|
|
SET(BUILD_64 ON)
|
|
|
|
SET(BREW OFF)
|
|
|
|
SET(PORT OFF)
|
|
|
|
SET(CMAKE_OSX_SYSROOT "@sdk@/MacOSX10.11.sdk/")
|
|
|
|
SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.08")
|
|
|
|
SET(CMAKE_CXX_STANDARD 11)
|
|
|
|
SET(CMAKE_OSX_ARCHITECTURES "x86_64")
|
|
|
|
SET(LLVM_ENABLE_PIC OFF)
|
|
|
|
SET(LLVM_ENABLE_PIE OFF)
|
|
|
|
else()
|
|
|
|
SET(CMAKE_C_COMPILER @CC@)
|
|
|
|
SET(CMAKE_CXX_COMPILER @CXX@)
|
|
|
|
endif()
|
|
|
|
|
2018-09-18 00:52:57 +00:00
|
|
|
if(ARCHITECTURE STREQUAL "arm")
|
2018-09-10 21:22:41 +00:00
|
|
|
set(ARCH "armv7-a")
|
|
|
|
set(ARM ON)
|
|
|
|
set(ARM_ID "armv7-a")
|
2018-03-19 23:33:49 +00:00
|
|
|
set(BUILD_64 OFF)
|
|
|
|
set(CMAKE_BUILD_TYPE release)
|
2018-09-10 21:22:41 +00:00
|
|
|
set(BUILD_TAG "linux-armv7")
|
|
|
|
set(ARM7)
|
2018-09-18 00:52:57 +00:00
|
|
|
elseif(ARCHITECTURE STREQUAL "aarch64")
|
2018-09-10 21:22:41 +00:00
|
|
|
set(ARCH "armv8-a")
|
|
|
|
set(ARM ON)
|
|
|
|
set(ARM_ID "armv8-a")
|
|
|
|
set(BUILD_TAG "linux-armv8")
|
|
|
|
set(BUILD_64 ON)
|
2018-03-19 23:33:49 +00:00
|
|
|
endif()
|
2018-03-20 00:26:35 +00:00
|
|
|
|
2018-09-25 22:36:34 +00:00
|
|
|
if(ARCHITECTURE STREQUAL "i686" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
SET(LINUX_32 ON)
|
|
|
|
endif()
|
|
|
|
|
2018-03-19 23:33:49 +00:00
|
|
|
#Create a new global cmake flag that indicates building with depends
|
2018-03-20 00:26:35 +00:00
|
|
|
set (DEPENDS true)
|