Skip to content

Commit

Permalink
c_sync: using std::thread;
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed May 31, 2017
1 parent f5f69d5 commit 5abe51f
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 113 deletions.
10 changes: 6 additions & 4 deletions wrappers/c_sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
# C Synchronous Interface
######################################################################################

set(THREADS_USE_PTHREADS_WIN32 true)
find_package(Threads REQUIRED)
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})

add_library (freenect_sync SHARED libfreenect_sync.c)
add_library (freenect_sync_static STATIC libfreenect_sync.c)
list(APPEND CompileFeatures "cxx_alias_templates" "cxx_auto_type" "cxx_nullptr")

add_library(freenect_sync SHARED libfreenect_sync.cpp)
add_library(freenect_sync_static STATIC libfreenect_sync.cpp)
target_compile_features(freenect_sync PRIVATE ${CompileFeatures})
target_compile_features(freenect_sync_static PRIVATE ${CompileFeatures})
set_target_properties (freenect_sync_static PROPERTIES OUTPUT_NAME freenect_sync)

set_target_properties (freenect_sync PROPERTIES
Expand Down
Loading

0 comments on commit 5abe51f

Please sign in to comment.