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 Jun 1, 2017
1 parent e59e4ef commit 7582cc3
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 113 deletions.
11 changes: 7 additions & 4 deletions wrappers/c_sync/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
# C Synchronous Interface
######################################################################################

set(THREADS_USE_PTHREADS_WIN32 true)
cmake_minimum_required(VERSION 3.5)

find_package(Threads REQUIRED)
include_directories(${THREADS_PTHREADS_INCLUDE_DIR})
list(APPEND CompileFeatures "cxx_alias_templates" "cxx_nullptr")

add_library (freenect_sync SHARED libfreenect_sync.c)
add_library (freenect_sync_static STATIC libfreenect_sync.c)
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 7582cc3

Please sign in to comment.