Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cmake_minimum_required( VERSION 3.6 )
# Require C++17 (or later)
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
# Create Project
project( Sample )
add_executable( Project main.cpp )
# Set StartUp Project
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "Project" )
# Find Package
find_package( CUBEMOS_SKELETON_TRACKING REQUIRED )
if( CUBEMOS_SKELETON_TRACKING_FOUND )
target_link_libraries( Project cubemos_skeleton_tracking )
endif()
#include <iostream>
#include <cubemos/skeleton_tracking.h>
int main( int argc, char* argv[] )
{
std::cout << "Hello, Cubemos!" << std::endl;
std::cout << "Version " << CM_SKEL_MAJOR_VERSION << "." << CM_SKEL_MINOR_VERSION << "." << CM_SKEL_PATCH_VERSION << std::endl;
return 0;
}
@UnaNancyOwen

This comment has been minimized.

Copy link
Owner Author

UnaNancyOwen commented May 7, 2020

The cubemos_core libraries does not need to be set in CMakeLists by user.
You can use Skeleton Tracking SDK by Cubemos only set cubemos_skeleton_tracking in your CMakeLists.
Sorry, It was my mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.