Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text resource files output to root build directory rather than library's subdirectory #1

Open
baughmann opened this issue Aug 10, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@baughmann
Copy link
Owner

Due to my lack of knowledge of CMake and C++ in general, I had to do the following:

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/resources/vindec_resource_countries.txt
        ${CMAKE_BINARY_DIR} COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/resources/vindec_resource_manufacturers.txt
        ${CMAKE_BINARY_DIR} COPYONLY)

This means that the resource files are output to the root build directory:
Screen Shot 2020-08-09 at 9 59 41 PM

I access the files like this because I don't know how to access them if they were inside a subdirectory rather than the root build directory.

    std::string getManufaturer(const char *manufacturerCode) {
        return getValue(manufacturerCode, "vindec_resource_manufacturers.txt");
    }

I would really love some assistance on this!

@baughmann baughmann added the help wanted Extra attention is needed label Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant