1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib/)
- include_directories(${3RDPARTY_INCLUDE_DIRS})
- set(module_list "")
- if(build_inference)
- list(APPEND module_list inference)
- install(DIRECTORY inference/include/ DESTINATION include)
- endif()
- if(build_inifile)
- list(APPEND module_list inifile)
- install(DIRECTORY inifile/include/ DESTINATION include)
- endif()
- if(build_md5)
- list(APPEND module_list md5)
- install(DIRECTORY md5/include/ DESTINATION include)
- endif()
- if(build_userApp)
- list(APPEND module_list userApp)
- install(DIRECTORY userApp/include/ DESTINATION include)
- endif()
- if(build_TCPClient)
- list(APPEND module_list TCPClient)
- install(DIRECTORY TCPClient/include/ DESTINATION include)
- endif()
- if(build_HttpClient)
- list(APPEND module_list HttpClient)
- install(DIRECTORY HttpClient/include/ DESTINATION include)
- endif()
- if(build_recorder)
- list(APPEND module_list recorder)
- install(DIRECTORY recorder/include/ DESTINATION include)
- endif()
- if(build_Cleaner)
- list(APPEND module_list Cleaner)
- install(DIRECTORY Cleaner/include/ DESTINATION include)
- endif()
- if(build_monitor)
- list(APPEND module_list monitor)
- install(DIRECTORY monitor/include/ DESTINATION include)
- endif()
- if(build_deviceState)
- list(APPEND module_list deviceState)
- install(DIRECTORY deviceState/include/ DESTINATION include)
- endif()
- if(build_Manager)
- list(APPEND module_list Manager)
- install(DIRECTORY Manager/include/ DESTINATION include)
- endif()
- if(build_Shell)
- list(APPEND module_list Shell)
- install(DIRECTORY Shell/include/ DESTINATION include)
- endif()
- if(HAVE_FFMPEG)
- include_directories(${FFMPEG_INCLUDE_DIR})
- endif()
- if(HAVE_OPENCV)
- include_directories(${OpenCV_INCLUDE_DIRS})
- endif()
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
- include_directories(${PROJECT_SOURCE_DIR}/modules)
- include_directories(${ToolKit_Root})
- include_directories(${MediaKit_Root})
- include_directories(/usr/local/cuda-10.2/include/)
- include_directories(${PROJECT_SOURCE_DIR}/framework/request/include/)
- foreach(module ${module_list})
- include_directories(${PROJECT_SOURCE_DIR}/modules/${module}/include/)
- file(GLOB_RECURSE module_src ${PROJECT_SOURCE_DIR}/modules/${module}/*.cpp)
- list(APPEND srcs ${module_src})
- endforeach()
- add_library(modules SHARED ${srcs})
- target_link_libraries(modules ${ALL_LINKER_LIBS})
|