Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Hiiragi_Iori
Beginner
100 Views

A problem about cmake.

Jump to solution

I have made a .so file to the project object_detection_demo_ssd_async, but it seems that the CMakeLists includes all the samples. 

I don't know much about cmake, but I want to konw how to modify the CMakeLists.txt file to add my .so file to the object_detection_demo_ssd_async project.

Many thanks.

0 Kudos
1 Solution
Shubha_R_Intel
Employee
100 Views

Dear Hiiragi Iori,

Since you are talking about an *.so you are using Linux. I assume that you are trying to modify object_detection_demo_ssd_async to call functions from your *.so ? What is this *.so for ?

In any case, if you want to modify CMakeLists.txt the easiest thing to do would be to create the *.so from a CMakeLists.txt, you would follow steps similar to stackoverflow cmake create a shared object .

As far as where to make these changes, the best place would be inference_engine/samples/CMakeLists.txt . Just put your built so here:

  set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib)

And your sample should find it.

Hope it helps,

Thanks,

Shubha

 

View solution in original post

1 Reply
Shubha_R_Intel
Employee
101 Views

Dear Hiiragi Iori,

Since you are talking about an *.so you are using Linux. I assume that you are trying to modify object_detection_demo_ssd_async to call functions from your *.so ? What is this *.so for ?

In any case, if you want to modify CMakeLists.txt the easiest thing to do would be to create the *.so from a CMakeLists.txt, you would follow steps similar to stackoverflow cmake create a shared object .

As far as where to make these changes, the best place would be inference_engine/samples/CMakeLists.txt . Just put your built so here:

  set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${IE_MAIN_SAMPLES_DIR}/${BIN_FOLDER}/${CMAKE_BUILD_TYPE}/lib)

And your sample should find it.

Hope it helps,

Thanks,

Shubha

 

View solution in original post

Reply