Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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