|
| set (CMAKE_CXX_STANDARD 11) cmake_minimum_required(VERSION 3.16) project(PosturePerfection VERSION 1.0.0) if(APPLE) set(CMAKE_PREFIX_PATH "/usr/local/Cellar/") endif() if(UNIX AND NOT APPLE) set(CMAKE_CXX_LINK_FLAGS "$ |
|
latomic | endif () add_subdirectory(gui ENABLE_EXPORTS) include_directories("$ |
|
src gui | set (LIBSRC iir.cpp inference_core.cpp framerate_settings.cpp post_processor.cpp pre_processor.cpp posture_estimator.cpp pipeline.cpp) set(OpenCV_DIR "$ |
|
opencv_build | find_package (OpenCV REQUIRED) if(NOT TENSORFLOW_SOURCE_DIR) get_filename_component(TENSORFLOW_SOURCE_DIR "$ |
|
| include_directories ("${TENSORFLOW_SOURCE_DIR}/tensorflow/lite") include_directories("$ |
|
| add_subdirectory ("${TENSORFLOW_SOURCE_DIR}/tensorflow/lite" "${CMAKE_CURRENT_BINARY_DIR}/tensorflow-lite" EXCLUDE_FROM_ALL) add_library(PosturePerfection_static STATIC $ |
|
| target_include_directories (PosturePerfection_static PUBLIC "${CMAKE_CURRENT_BINARY_DIR}/../flatbuffers/include") add_executable(PosturePerfection $ |
|
main cpp | target_link_libraries (PosturePerfection cpptimer rt RemoteNotifyBroadcast) target_link_libraries(PosturePerfection tensorflow-lite PosturePerfection_gui $ |
|
| target_link_libraries (PosturePerfection ${OpenCV_LIBS}) target_include_directories(PosturePerfection PRIVATE "$ |
|