Skip to content

How to use the built library #82

@wwdok

Description

@wwdok

Hello, i am new to cmake and tbb, so i ask the question...
I git clone this repo, and build it with vscode cmake on Windows successfully:
image
it generates a lot of files in build directory, i found the library locate in the Release subdirectory:
image
Then i add following lines in my project's CMakeLists.txt:

include_directories("D:/Dependency/tbb/include")
add_library (tbb_lib STATIC IMPORTED)
set_target_properties( tbb_lib PROPERTIES IMPORTED_LOCATION "D:/Dependency/tbb/build/Release/tbb.lib" )

cmake tells me LINK : fatal error LNK1104: cannot open file 'tbb.lib'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions