-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathCMakeLists.txt
27 lines (25 loc) · 1.01 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
########################################################################
## Feature registration
########################################################################
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_APPS "Enable command line applications" ON "ENABLE_LIBRARY" OFF)
add_feature_info(Apps ENABLE_APPS "command line applications")
if (NOT ENABLE_APPS)
return()
endif()
########################################################################
# Build utility executable
########################################################################
add_executable(SoapySDRUtil
SoapySDRUtil.cpp
SoapySDRProbe.cpp
SoapyRateTest.cpp
)
if (MSVC)
target_include_directories(SoapySDRUtil PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/msvc)
endif ()
target_link_libraries(SoapySDRUtil SoapySDR)
install(TARGETS SoapySDRUtil DESTINATION ${CMAKE_INSTALL_BINDIR})
#install man pages for the application executable
install(FILES SoapySDRUtil.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)