Comments (10)
I made it, with
Great. Yes, this is how it usually done.
from neovim-cmake.
Steps to reproduce
:Cmake run or :CMake Build_and_run
Just installed the plugin.
Can't reproduce.
from neovim-cmake.
This is with :CMake run, and also occurs with :CMake build_and_run:
Also, if is the possibility when open an external terminal to see the output of the program.
from neovim-cmake.
This is with :CMake run, and also occurs with :CMake build_and_run:
So the program runs correctly. The issue is that you can't load resources. Are they located at the source directory?
from neovim-cmake.
This is the root dir:
- 0000 is where the source code is
Note: It has the .vscode and vscode_workspace, it is just copy paste and I lazy to delete them.
from neovim-cmake.
My project dir is:
This tells me nothing. But I assume that you load resources from the source directory. You shouldn't. You need to configure CMake to copy all your data to your build directory automatically.
from neovim-cmake.
I've moved the assets to build, build/linux-debug/ and nothing.
from neovim-cmake.
I've moved the assets to build, build/linux-debug/ and nothing.
No, you should locate the resources at the bin
folder. Or you can specify runDir
in your neovim.json
to run the application from you build directory (by default it runs in your application build directory, build/linux-debug/bin
in your case). Read more about configuration here.
from neovim-cmake.
I moved to bin and works. To specify or config cmake to copy the assets folder to build/linux-debug/bin, How it could be?
Really thank you, I am still learning about cmake.
Edit: Also edited the neovim.json with runDir: ".." and works without moving the assets to bin.
But I prefer the solution that you propose.
from neovim-cmake.
I made it, with
file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}/bin)
from neovim-cmake.
Related Issues (20)
- Allow customizing of CMake executable
- CMake select_target fails with error HOT 2
- No output after CMake Run HOT 3
- Support lazy loading with vim-plug HOT 5
- Provide a suitable command to run `cmake --install [build_dir]` within neovim HOT 5
- Support the :CTest command HOT 1
- Upon coredump (crash) plugin reports 0 return HOT 7
- execute command :CMake run, report err HOT 2
- Support for setting environment variables during launch/debug HOT 3
- Pass build_args while executing build_all command HOT 4
- Add support for CMake presets HOT 3
- Add the ability to run program in built-in terminal HOT 4
- Position of the quickfix window HOT 6
- Questions about dap configurations HOT 2
- Integration with 'trouble.nvim'
- 'CMake build_all' does not respect 'build_args' HOT 1
- Breaking change: after 23a63ffd7b709b0f9f407c47523e9bbe322cde37 HOT 7
- API For Fetching Build Targets HOT 7
- The program is not entering the directory HOT 1
- 'run_dir' is not actually missing by default
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim-cmake.