Code Monkey home page Code Monkey logo

Comments (10)

Shatur avatar Shatur commented on June 12, 2024 2

I made it, with

Great. Yes, this is how it usually done.

from neovim-cmake.

Shatur avatar Shatur commented on June 12, 2024

Steps to reproduce
:Cmake run or :CMake Build_and_run
Just installed the plugin.

Can't reproduce.

from neovim-cmake.

chriztheanvill avatar chriztheanvill commented on June 12, 2024

This is with :CMake run, and also occurs with :CMake build_and_run:
image

This is from terminal:
image

Also, if is the possibility when open an external terminal to see the output of the program.

from neovim-cmake.

Shatur avatar Shatur commented on June 12, 2024

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.

chriztheanvill avatar chriztheanvill commented on June 12, 2024

My project dir is:
image

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.

Shatur avatar Shatur commented on June 12, 2024

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.

chriztheanvill avatar chriztheanvill commented on June 12, 2024

I've moved the assets to build, build/linux-debug/ and nothing.
image

from neovim-cmake.

Shatur avatar Shatur commented on June 12, 2024

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.

chriztheanvill avatar chriztheanvill commented on June 12, 2024

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.

chriztheanvill avatar chriztheanvill commented on June 12, 2024

I made it, with

file(COPY assets DESTINATION ${CMAKE_BINARY_DIR}/bin)

from neovim-cmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.