CMakeLists.txt (b0a38200676fde45b92b0f893950e072fa9173ee) | CMakeLists.txt (48fe012ac445727d6a0bf0074d6f218d5616862f) |
---|---|
1# Copyright 2013 Dominic Spill 2# 3# This file is part of Libbtbb (pcapdump) 4# 5# GNU Radio is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2, or (at your option) 8# any later version. --- 12 unchanged lines hidden (view full) --- 21set(SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py) 22set(DEPS ${CMAKE_CURRENT_SOURCE_DIR}/pcapdump/__init__.py 23 ${CMAKE_CURRENT_SOURCE_DIR}/pcapdump/pcapdump.py) 24set(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build) 25 26configure_file(${SETUP_PY_IN} ${SETUP_PY}) 27 28add_custom_command(OUTPUT ${OUTPUT}/timestamp | 1# Copyright 2013 Dominic Spill 2# 3# This file is part of Libbtbb (pcapdump) 4# 5# GNU Radio is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2, or (at your option) 8# any later version. --- 12 unchanged lines hidden (view full) --- 21set(SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py) 22set(DEPS ${CMAKE_CURRENT_SOURCE_DIR}/pcapdump/__init__.py 23 ${CMAKE_CURRENT_SOURCE_DIR}/pcapdump/pcapdump.py) 24set(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/build) 25 26configure_file(${SETUP_PY_IN} ${SETUP_PY}) 27 28add_custom_command(OUTPUT ${OUTPUT}/timestamp |
29 COMMAND ${PYTHON_EXECUTABLE} setup.py build | 29 COMMAND ${Python3_EXECUTABLE} setup.py build |
30 COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}/timestamp 31 DEPENDS ${DEPS}) 32 33add_custom_target(pcapdump ALL DEPENDS ${OUTPUT}/timestamp) 34install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} build -b ${OUTPUT} install --prefix=${BUILD_ROOT}/${CMAKE_INSTALL_PREFIX})") 35 36add_custom_target(btaptap ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/btaptap) 37install(PROGRAMS btaptap DESTINATION ${INSTALL_DEFAULT_BINDIR}) 38 | 30 COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}/timestamp 31 DEPENDS ${DEPS}) 32 33add_custom_target(pcapdump ALL DEPENDS ${OUTPUT}/timestamp) 34install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} build -b ${OUTPUT} install --prefix=${BUILD_ROOT}/${CMAKE_INSTALL_PREFIX})") 35 36add_custom_target(btaptap ALL DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/btaptap) 37install(PROGRAMS btaptap DESTINATION ${INSTALL_DEFAULT_BINDIR}) 38 |