-
Notifications
You must be signed in to change notification settings - Fork 89
/
CMakeLists.txt
49 lines (38 loc) · 1.35 KB
/
CMakeLists.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#top dir cmake project for libairspy + airspy-tools
cmake_minimum_required(VERSION 2.8.12.1)
project (airspy_all)
#provide missing strtoull() for VC11
if(MSVC11)
add_definitions(-Dstrtoull=_strtoui64)
endif(MSVC11)
add_subdirectory(libairspy)
add_subdirectory(airspy-tools)
########################################################################
# Create uninstall target
########################################################################
configure_file(
${PROJECT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
@ONLY)
add_custom_target(uninstall
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
)
########################################################################
# Copy Files Win32 only
########################################################################
if(WIN32 AND NOT CMAKE_CROSSCOMPILING)
if (NOT MINGW)
if (NOT DEFINED LIBUSB_LIBRARIES)
configure_file(
${CMAKE_CURRENT_BINARY_DIR}/../libs_win32/libusb-1.0.dll
${CMAKE_CURRENT_BINARY_DIR}/airspy-tools/src/libusb-1.0.dll
COPYONLY)
endif()
if (NOT DEFINED THREADS_PTHREADS_WIN32_LIBRARY)
configure_file(
${CMAKE_CURRENT_BINARY_DIR}/../libs_win32/pthreadGC2.dll
${CMAKE_CURRENT_BINARY_DIR}/airspy-tools/src/pthreadGC2.dll
COPYONLY)
endif()
endif()
endif()