Skip to content

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

@baughmann

Description

@baughmann

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions