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

Contrib: CMake example #139

Open
paulocoutinhox opened this issue Oct 1, 2018 · 1 comment
Open

Contrib: CMake example #139

paulocoutinhox opened this issue Oct 1, 2018 · 1 comment

Comments

@paulocoutinhox
Copy link

paulocoutinhox commented Oct 1, 2018

Hi,

This is a simple CMake example if anyone want:

File: /CMakeLists.txt

cmake_minimum_required(VERSION 3.0)
project(mask_rcnn)

set(FILES_SRC
    mask_rcnn.cpp
)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(mask_rcnn ${FILES_SRC})
target_link_libraries(mask_rcnn ${OpenCV_LIBS})

How to use:

rm -rf build/ && mkdir build && cd build && cmake ../ && make && cp mask_rcnn ../ && cd .. && ./mask_rcnn

Or separate if you want:

rm -rf build/  
mkdir build  
cd build  
cmake ../  
make  
cp mask_rcnn ../  
cd ..  
./mask_rcnn  

If you are using macOS, you can install "brew" and use "brew" to install "cmake" and "opencv" with commands:

brew install cmake  
brew install opencv  

Thanks.

@sakshiseth
Copy link
Contributor

@vikasgupta-github This can be added in our document for reference. This issue can be closed.
Thank you @prsolucoes for this example.

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

2 participants