-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
44 lines (40 loc) · 1.69 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
project(node_xdotool)
cmake_minimum_required(VERSION 3.0)
option(NAN_INCLUDE_DIRECTORY "NAN bindings directory" ${CMAKE_CURRENT_SOURCE_DIR}/node_modules/nan)
option(NODE_INSTALL_DIR "Node.js path" "")
set(CMAKE_CXX_STANDARD 14)
set(NODE_XDOTOOL_COMPILE_OPTIONS -Wfatal-errors)
set(NODE_XDOTOOL_INCLUDE_DIRS ${CMAKE_JS_INC} ${NODE_INSTALL_DIR}/include/node ${NAN_INCLUDE_DIRECTORY} ${NODE_XDOTOOL_INCLUDE_DIRS})
set(NODE_XDOTOOL_LIBRARIES xdo ${CMAKE_JS_LIB})
set(NODE_XDOTOOL_SOURCE_FILES src/main.cpp
src/xdo_c.h
src/XdoTool.cpp
src/ResourceManager.cpp
src/XdoToolTaskWorker.cpp
src/XdoToolTask.cpp
src/TypeConverter.cpp
src/tasks/SendKeysequence.cpp
src/Screenshooter.cpp
src/XTask.cpp
src/XService.cpp
src/Keyboard.cpp
src/tasks/GetWindowProperty.cpp
src/tasks/QueryKeymap.cpp
src/tasks/GetWindowPID.cpp
src/tasks/GetViewportDimensions.cpp
src/tasks/EnterText.cpp
src/tasks/MoveMouse.cpp
src/tasks/GetImage.cpp
src/tasks/WindowHasProperty.cpp
src/tasks/GetMouseLocation.cpp
src/tasks/ActivateWindow.cpp
src/tasks/SearchWindows.cpp
#src/tasks/GetActiveKeysToKeycodeList.cpp
#src/tasks/GetActiveKeysToKeycodeList.h
src/tasks/Sync.cpp
src/tasks/Sync.h src/tasks/GetFocusedWindow.cpp src/tasks/GetFocusedWindow.h src/tasks/GetWindowSize.cpp src/tasks/GetWindowSize.h)
add_library(node_xdotool SHARED ${NODE_XDOTOOL_SOURCE_FILES})
set_target_properties(node_xdotool PROPERTIES PREFIX "" SUFFIX ".node")
target_link_libraries(node_xdotool ${NODE_XDOTOOL_LIBRARIES})
target_compile_options(node_xdotool PRIVATE ${NODE_XDOTOOL_COMPILE_OPTIONS})
target_include_directories(node_xdotool PRIVATE ${NODE_XDOTOOL_INCLUDE_DIRS})