Last active
May 7, 2020 06:33
-
-
Save UnaNancyOwen/6e07e2d6d459b2cadfa7a17d867771ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.