Files
nearby/cmake/local_build_setup.cmake
T
Alexey Polyudov 7466db88c0 Add CMake support
Change-Id: I716e1fa3ec43bfe57326f5a691131505f84b7832
2020-04-04 12:55:01 -07:00

13 lines
335 B
CMake

include(ProcessorCount)
ProcessorCount(N_CPUS)
if (N_CPUS EQUAL 0)
set (N_CPUS 1)
endif()
set (TOOLS_ROOT ${CMAKE_BINARY_DIR}/stage)
set (TOOLS_BUILD_ROOT ${TOOLS_ROOT}/build)
set (TOOLS_INSTALL_ROOT ${TOOLS_ROOT}/install)
set (TOOLS_INSTALL_PREFIX ${TOOLS_INSTALL_ROOT}/usr/local)
set (CMAKE_FIND_ROOT_PATH ${TOOLS_INSTALL_ROOT})