Skip to content

Commit

Permalink
(#19) Updated CMakeLists.txt to reflect changes regarding OS specific…
Browse files Browse the repository at this point in the history
… source folders
  • Loading branch information
Simon Hofmann committed Jul 31, 2020
1 parent 976beb6 commit 5ee4de7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ project(libnut)
# Source
set(SOURCE_FILES "src/main.cc" "src/deadbeef_rand.c" "src/keycode.c" "src/keypress.c" "src/MMBitmap.c" "src/mouse.c" "src/screen.c" "src/screengrab.c")
if (UNIX AND NOT APPLE)
set(SOURCE_FILES "${SOURCE_FILES}" "src/xdisplay.c" "src/highlightwindow_linux.c")
set(SOURCE_FILES "${SOURCE_FILES}" "src/linux/xdisplay.c" "src/linux/highlightwindow.c")
elseif (UNIX AND APPLE)
set(SOURCE_FILES "${SOURCE_FILES}" "src/highlightwindow_macos.m")
set(SOURCE_FILES "${SOURCE_FILES}" "src/macos/highlightwindow.m")
elseif (WIN32)
set(SOURCE_FILES "${SOURCE_FILES}" "src/highlightwindow_win32.c")
set(SOURCE_FILES "${SOURCE_FILES}" "src/win32/highlightwindow.c")
endif()
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES} ${CMAKE_JS_SRC})

Expand Down

0 comments on commit 5ee4de7

Please sign in to comment.