Create CMake build directory mkdir tflite_build Note: If you're using the TensorFlow Docker image, the repo is already Clone TensorFlow repository git clone tensorflow_src The official cmake installation guide Step 2. On Ubuntu, you can simply run the following Note: This feature is available since version 2.4. , macOS Catalina (x86_64), Windows 10 and TensorFlow devel Docker image The following instructions have been tested on Ubuntu 16.04.3 64-bit PC (AMD64) To make this working you need to change the CMake generator from Unix Makefiles to CodeBlocks - Unix Makefiles orįrom Ninja to CodeBlocks - Ninja if your prefer building using Ninja, like I do.Īctually this is done automatically when building using mk.This page describes how to build and use the TensorFlow Lite library with But by generating a CodeBlocks projectĪlong with the usual Unix Makefile or Ninja file it is possible to get this from the CodeBlocks project file.Ī simple Perl script parses this XML file and outputs the desired information. It is not so easy to get a list of executable targets out from CMake directly. Permanently in a dot file when leaving Vim, and reload it on next start. In addition, I integrated my existing mk script for building CMake based projects and store the settings Targets from a CMake generated CodeBlocks xml file. I needed to configure the variables g:target, g:workdir, and g:args manually,Īnd because I'm lazy, I thought it would be useful to make the target selectable interactively.īecause all my programs are CMake based, I'm extracting the information about available executable vimrc, which contains mappings for launching,ĭebugging and running Valgrind. I refactored this plugin from some existing code in my. Then use one of the default mappings above to run the selected target. Of the target you want to use by moving the cursor to that line and press. Then execute the command :CMakeTargetList, and select the line The plugin will automatically find the project rootĪnd the top level CMakeLists.txt file. Simply open any source file of a Git project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |