File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ include(CPack)
16
16
17
17
nodejs_init ()
18
18
19
+ if (APPLE AND NOT UIOHOOKDIR )
20
+ message (FATAL_ERROR "UIOHOOKDIR variable is missing. Please set this variable to specify path to the build dir of libuiohook" )
21
+ endif ()
22
+
23
+ message (STATUS "Path to uiohook dir " ${UIOHOOKDIR} /include/ )
24
+
19
25
#############################
20
26
# Source, Libraries & Directories
21
27
#############################
@@ -34,6 +40,11 @@ SET(PROJECT_INCLUDE_PATHS
34
40
"${CMAKE_SOURCE_DIR} /source/"
35
41
)
36
42
43
+ if (APPLE )
44
+ list (APPEND PROJECT_INCLUDE_PATHS "${UIOHOOKDIR} /include/" )
45
+ list (APPEND PROJECT_LIBRARIES "${UIOHOOKDIR} /lib/libuiohook.dylib" )
46
+ endif ()
47
+
37
48
#############################
38
49
# Building
39
50
#############################
@@ -92,8 +103,18 @@ INSTALL(TARGETS ${PROJECT_NAME}
92
103
RUNTIME DESTINATION "./" COMPONENT Runtime
93
104
LIBRARY DESTINATION "./" COMPONENT Runtime
94
105
)
95
- INSTALL (FILES $< TARGET_PDB_FILE:${PROJECT_NAME} > DESTINATION ./ OPTIONAL )
96
106
107
+ if (WIN32 )
108
+ INSTALL (FILES $< TARGET_PDB_FILE:${PROJECT_NAME} > DESTINATION ./ OPTIONAL )
109
+ endif ()
110
+
111
+ if (APPLE )
112
+ INSTALL (
113
+ DIRECTORY "${UIOHOOKDIR} /lib/"
114
+ DESTINATION "./"
115
+ FILES_MATCHING PATTERN "*.dylib"
116
+ )
117
+ endif ()
97
118
98
119
# JavaScript
99
120
INSTALL (
You can’t perform that action at this time.
0 commit comments