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

CCTag not getting linked #212

Open
dkhusted opened this issue Aug 25, 2023 · 1 comment
Open

CCTag not getting linked #212

dkhusted opened this issue Aug 25, 2023 · 1 comment

Comments

@dkhusted
Copy link

dkhusted commented Aug 25, 2023

I am trying to make a python wrapper using code from #136, but i manage to build the project. I am very new to cmake so could use some pointers as to what i am doing wrong:
I only have one CMakeLists that builds the wrapper.

CMakeLists.txt

cmake_minimum_required(VERSION 3.17.3)

project(pycctag) 

find_package(CCTag CONFIG REQUIRED)

add_subdirectory(pybind11) #cmakelists.txt and pybind11-2.5.0(or another version) folder are in same directory

pybind11_add_module(pycctag pycctag.cpp)

target_link_libraries(pycctag PUBLIC CCTag::CCTag)
`

When trying to build i get
`fatal error: CCTag/ICCTag.hpp: No such file or directory
   12 | #include <CCTag/ICCTag.hpp>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

I have installed CCTag by following the INSTALL.md, and the installation went fine.

@anand97
Copy link

anand97 commented Oct 2, 2023

Try setting CCTag_DIR with the path to your CCTag installation's cmake config files, before invoking the find command.

set(CCTag_DIR /usr/local/lib/cmake/CCTag)

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

No branches or pull requests

2 participants