This repository was archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (37 loc) · 1.25 KB
/
Copy pathCMakeLists.txt
File metadata and controls
46 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#####################################################################
# Freenect Green Screen Project
#####################################################################
cmake_minimum_required(VERSION 3.17)
# Project Name
project(
FreenectGreenScreen VERSION 0.2.1
DESCRIPTION "Green screen for your kinect!"
LANGUAGES CXX
)
# Generate JSON file for LSP
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Output binary files in specific dir
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
#####################################################################
# Compiling source code
#####################################################################
# Search Packages
find_package(OpenCV COMPONENTS core imgproc highgui REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
find_package(Threads REQUIRED)
find_package(libfreenect REQUIRED)
# Necessary for libfreenect
include_directories("/usr/include/libusb-1.0/")
# Generate binary
add_executable(freenect-green-screen
src/main.cpp
src/CmdLineOpts.cpp
src/MyFreenectDevice.cpp
src/utils.cpp
)
target_link_libraries(freenect-green-screen
${OpenCV_LIBS}
${CMAKE_THREAD_LIBS_INIT}
${FREENECT_LIBRARIES}
)
target_compile_options(freenect-green-screen PRIVATE -Werror -Wall -Wextra)