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 should I include the header files in my CMakeLists.txt in my own project? #114

Open
mowkee opened this issue Sep 21, 2020 · 0 comments

Comments

@mowkee
Copy link

mowkee commented Sep 21, 2020

I have compiled SeetaFace and installed in it in by building the INSTALL property in Visual Studio which installs the SeetaFace in Program Files (x86) folder. In that folder there are three folders bin, include and lib. I set the property SeetaFace_DIR in my projects CMakeLists.txt as mentioned in the lib/cmake/SeetaFaceConfig.cmake but how do I add the include folders? For example in OpenCV one does it by using OpenCV_INCLUDE_DIR. How do we do it with SeetaFace?

here's my CMakeLists.txt file:

cmake_minimum_required(VERSION 3.5)

project(NeuNet LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(SeetaFace REQUIRED)
if(SeetaFace_FOUND)
    message("found SeetaFace")

    else()
        set(SeetaFace_DIR CACHE PATH "SeetaFace library for CPU face recognition")
endif()

add_library(NeuNet SHARED
  NeuNet_global.h
  neunet.cpp
  neunet.h
  abstractmodel.cpp
  abstractmodel.h
  abstractparser.cpp
  abstractparser.h
  abstractcryptography.cpp
  abstractcryptography.h
  yolomodel.cpp
  yolomodel.h
  dlibmodel.cpp
  dlibmodel.h
  cpufacerecognizermodel.cpp
  cpufacerecognizermodel.h
)


target_compile_definitions(NeuNet PRIVATE NEUNET_LIBRARY ${SeetaFace_LIBRARIES})


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