Commit 51b7cbe 1 parent f5f69d5 commit 51b7cbe Copy full SHA for 51b7cbe
File tree 2 files changed +134
-113
lines changed
2 files changed +134
-113
lines changed Original file line number Diff line number Diff line change 2
2
# C Synchronous Interface
3
3
######################################################################################
4
4
5
- set (THREADS_USE_PTHREADS_WIN32 true )
5
+ cmake_minimum_required (VERSION 3.5)
6
+
6
7
find_package (Threads REQUIRED)
7
- include_directories ( ${THREADS_PTHREADS_INCLUDE_DIR} )
8
+ list ( APPEND CompileFeatures "cxx_alias_templates" "cxx_nullptr" )
8
9
9
- add_library (freenect_sync SHARED libfreenect_sync.c)
10
- add_library (freenect_sync_static STATIC libfreenect_sync.c)
10
+ add_library (freenect_sync SHARED libfreenect_sync.cpp)
11
+ add_library (freenect_sync_static STATIC libfreenect_sync.cpp)
12
+ target_compile_features (freenect_sync PRIVATE ${CompileFeatures} )
13
+ target_compile_features (freenect_sync_static PRIVATE ${CompileFeatures} )
11
14
set_target_properties (freenect_sync_static PROPERTIES OUTPUT_NAME freenect_sync)
12
15
13
16
set_target_properties (freenect_sync PROPERTIES
You can’t perform that action at this time.
0 commit comments