Revision 71c0f14a gr-comedi/CMakeLists.txt
| b/gr-comedi/CMakeLists.txt | ||
|---|---|---|
| 20 | 20 |
######################################################################## |
| 21 | 21 |
# Setup dependencies |
| 22 | 22 |
######################################################################## |
| 23 |
INCLUDE(GrBoost)
|
|
| 23 |
include(GrBoost)
|
|
| 24 | 24 |
|
| 25 |
INCLUDE(FindPkgConfig)
|
|
| 25 |
include(FindPkgConfig)
|
|
| 26 | 26 |
|
| 27 | 27 |
PKG_CHECK_MODULES(COMEDI comedilib) |
| 28 | 28 |
|
| 29 | 29 |
######################################################################## |
| 30 | 30 |
# Register component |
| 31 | 31 |
######################################################################## |
| 32 |
INCLUDE(GrComponent)
|
|
| 32 |
include(GrComponent)
|
|
| 33 | 33 |
GR_REGISTER_COMPONENT("gr-comedi" ENABLE_GR_COMEDI
|
| 34 | 34 |
COMEDI_FOUND |
| 35 | 35 |
LINUX #comedi uses linux specific device noces |
| ... | ... | |
| 37 | 37 |
ENABLE_GR_CORE_ |
| 38 | 38 |
) |
| 39 | 39 |
|
| 40 |
REMOVE_DEFINITIONS(-fvisibility=hidden) #FIXME until we do symbol visibility
|
|
| 40 |
remove_definitions(-fvisibility=hidden) #FIXME until we do symbol visibility
|
|
| 41 | 41 |
|
| 42 | 42 |
GR_SET_GLOBAL(GR_COMEDI_INCLUDE_DIRS |
| 43 | 43 |
${CMAKE_CURRENT_SOURCE_DIR}/src
|
| ... | ... | |
| 46 | 46 |
######################################################################## |
| 47 | 47 |
# Begin conditional configuration |
| 48 | 48 |
######################################################################## |
| 49 |
IF(ENABLE_GR_COMEDI)
|
|
| 49 |
if(ENABLE_GR_COMEDI)
|
|
| 50 | 50 |
|
| 51 | 51 |
######################################################################## |
| 52 | 52 |
# Setup CPack components |
| 53 | 53 |
######################################################################## |
| 54 |
INCLUDE(GrPackage)
|
|
| 54 |
include(GrPackage)
|
|
| 55 | 55 |
CPACK_SET(CPACK_COMPONENT_GROUP_COMEDI_DESCRIPTION "GNU Radio Comedi Blocks") |
| 56 | 56 |
|
| 57 | 57 |
CPACK_COMPONENT("comedi_runtime"
|
| ... | ... | |
| 85 | 85 |
######################################################################## |
| 86 | 86 |
# Add subdirectories |
| 87 | 87 |
######################################################################## |
| 88 |
ADD_SUBDIRECTORY(src)
|
|
| 88 |
add_subdirectory(src)
|
|
| 89 | 89 |
|
| 90 | 90 |
######################################################################## |
| 91 | 91 |
# Create Pkg Config File |
| 92 | 92 |
######################################################################## |
| 93 |
CONFIGURE_FILE(
|
|
| 93 |
configure_file(
|
|
| 94 | 94 |
${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-comedi.pc.in
|
| 95 | 95 |
${CMAKE_CURRENT_BINARY_DIR}/gnuradio-comedi.pc
|
| 96 | 96 |
@ONLY) |
| 97 | 97 |
|
| 98 |
INSTALL(
|
|
| 98 |
install(
|
|
| 99 | 99 |
FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-comedi.pc
|
| 100 | 100 |
DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
|
| 101 | 101 |
COMPONENT "comedi_devel" |
| 102 | 102 |
) |
| 103 | 103 |
|
| 104 |
ENDIF(ENABLE_GR_COMEDI) |
|
| 104 |
endif(ENABLE_GR_COMEDI) |
|
Also available in: Unified diff