forked from mickem/nscp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_deps.cmake
30 lines (26 loc) · 1.09 KB
/
check_deps.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 2.6)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0011 NEW)
ENDIF(COMMAND CMAKE_POLICY)
set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
set (CMAKE_FIND_LIBRARY_SUFFIXES .lib)
#############################################################################
#
# Setup cmake enviornment and include custom config overrides
#
#############################################################################
IF(EXISTS ${TARGET}/build.cmake)
MESSAGE(STATUS "Reading custom variables from: ${TARGET}/build.cmake")
INCLUDE(${TARGET}/build.cmake)
ENDIF(EXISTS ${TARGET}/build.cmake)
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
SET(CMAKE_MODULE_PATH "${SOURCE}/build/cmake;${CMAKE_MODULE_PATH}")
SET(BUILD_PYTHON_FOLDER "${SOURCE}/build/python")
SET(BUILD_CMAKE_FOLDER "${SOURCE}/build/cmake")
SET(NSCP_PROJECT_BINARY_DIR ${TARGET})
#############################################################################
#
# Find all dependencies and report anything missing.
#
#############################################################################
INCLUDE(${BUILD_CMAKE_FOLDER}/dependencies.cmake)