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

How to use the built library #82

Open
wwdok opened this issue Aug 24, 2022 · 0 comments
Open

How to use the built library #82

wwdok opened this issue Aug 24, 2022 · 0 comments

Comments

@wwdok
Copy link

wwdok commented Aug 24, 2022

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant