forked from secondlife/3p-open-libndofdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (21 loc) · 804 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (21 loc) · 804 Bytes
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
# -*- cmake -*-
cmake_minimum_required(VERSION 3.18)
project(libndofdev)
find_package(SDL3 CONFIG REQUIRED)
add_compile_definitions(USE_SDL3=1)
set(libndofdev_SOURCE_FILES
ndofdev.c
ndofdev_external.h
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
message(FATAL_ERROR "Windows configuration not implemented. Use the 3DConnexion library located at http://bitbucket.org/lindenlab/3p-libndofdev ")
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
message(FATAL_ERROR "Darwin configuration not implemented. Use the 3DConnexion library located at http://bitbucket.org/lindenlab/3p-libndofdev ")
endif()
add_library (ndofdev STATIC ${libndofdev_SOURCE_FILES})
target_link_libraries(ndofdev
PUBLIC
SDL3::SDL3
)
install(TARGETS ndofdev)
install(FILES ndofdev_external.h TYPE INCLUDE)