-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
34 lines (25 loc) · 1006 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.8)
project(mouseControl)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenCV REQUIRED)
find_package(HandDetector REQUIRED)
if (UNIX)
find_package(X11 REQUIRED)
endif ()
if (WIN32)
message(SEND_ERROR "Windows interaction is not implemented")
endif ()
set(SOURCE_FILES main.cpp)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wno-sign-compare -Wno-narrowing -Wno-unknown-pragmas")
add_executable(mouseControl main.cpp SystemInteraction.hpp cvui.h GUI.hpp Settings.hpp)
target_link_libraries(mouseControl ${OpenCV_LIBS})
target_link_libraries(mouseControl ${HandDetector_LIBRARY})
target_link_libraries(mouseControl pthread)
include_directories(${HandDetector_INCLUDE_DIR})
if (UNIX)
target_link_libraries(mouseControl ${X11_LIBRARIES})
include_directories(${X11_INCLUDE_DIR})
target_link_libraries(mouseControl ${X11_XTest_LIB})
include_directories(${X11_XTest_INCLUDE_PATH})
endif ()