blob: 35420ce50a389a4e4243bd28bc88520f67833d9d (
plain)
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
|
project(razer C)
cmake_minimum_required(VERSION 2.4)
if (COMMAND cmake_policy)
# Libraries linked via full path no longer produce linker search paths.
cmake_policy(SET CMP0003 NEW)
# Preprocessor definition values are not escaped automatically.
cmake_policy(SET CMP0005 OLD)
endif (COMMAND cmake_policy)
include("${razer_SOURCE_DIR}/scripts/cmake.global")
include(CheckIncludeFile)
macro(CHECK_LIB _LIB _HEADER)
check_include_file(${_HEADER} ${_HEADER}_ERR)
if (NOT ${_HEADER}_ERR)
message(FATAL_ERROR "Could not find library \"lib${_LIB}\" "
"with header ${_HEADER}")
endif (NOT ${_HEADER}_ERR)
endmacro(CHECK_LIB)
check_lib(usb-1.0 libusb.h)
add_subdirectory(librazer)
add_subdirectory(razerd)
add_subdirectory(ui)
|