-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
22 lines (17 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.1)
project(Theaterwagen)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(THREADS_PREFER_PTHREAD_FLAG ON)
#Bring the headers into the project
include_directories(include)
#Add sources:
file(GLOB SOURCES "src/*.cpp")
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_package( Threads REQUIRED)
add_executable(theaterwagen ${SOURCES})
#uclibc-ng requires inlt
#target_link_libraries( theaterwagen -pthread intl b64 yaml-cpp uuid sfeMovie sfml-system sfml-window sfml-graphics sfml-audio usb dl X11 wiringPi crypt opencv_core avformat avcodec avutil swscale opencv_imgproc opencv_videoio opencv_objdetect opencv_imgcodecs civetweb)
target_link_libraries( theaterwagen -pthread b64 yaml-cpp uuid sfeMovie sfml-system sfml-window sfml-graphics sfml-audio usb dl wiringPi crypt opencv_core avformat avcodec avutil swscale opencv_imgproc opencv_videoio opencv_objdetect opencv_imgcodecs civetweb)
install(TARGETS theaterwagen RUNTIME DESTINATION /home/theaterwagen/theaterwagen)