2024-08-09 15:00:30 +00:00
|
|
|
set(HEADERS
|
|
|
|
chrono_timer.h
|
|
|
|
ddio.h
|
|
|
|
ddio_common.h
|
2024-09-16 18:48:42 +00:00
|
|
|
ddio_lnx.h
|
2024-09-16 18:55:04 +00:00
|
|
|
controller.h
|
|
|
|
sdlcontroller.h
|
2024-09-16 18:48:42 +00:00
|
|
|
)
|
2024-04-20 12:35:20 +00:00
|
|
|
set(CPPS
|
2024-05-25 00:01:59 +00:00
|
|
|
chrono_timer.cpp
|
2024-04-21 09:02:27 +00:00
|
|
|
ddio.cpp
|
2024-06-15 23:31:43 +00:00
|
|
|
file.cpp
|
2024-05-22 09:33:33 +00:00
|
|
|
key.cpp
|
2024-06-21 16:46:53 +00:00
|
|
|
lnxforcefeedback.cpp
|
|
|
|
lnxio.cpp
|
|
|
|
sdljoy.cpp
|
|
|
|
lnxkey.cpp
|
|
|
|
lnxkey_null.cpp
|
|
|
|
lnxmouse.cpp
|
|
|
|
lnxkey_sdl.cpp
|
2024-09-16 18:55:04 +00:00
|
|
|
sdlcontroller.cpp
|
2024-08-20 14:03:24 +00:00
|
|
|
$<$<PLATFORM_ID:Darwin,Linux,OpenBSD>:
|
2024-05-22 09:33:33 +00:00
|
|
|
lnxfile.cpp
|
|
|
|
>
|
|
|
|
$<$<PLATFORM_ID:Windows>:
|
|
|
|
winfile.cpp
|
|
|
|
>
|
|
|
|
)
|
2024-08-09 15:00:30 +00:00
|
|
|
add_library(ddio STATIC ${HEADERS} ${CPPS})
|
2024-06-19 21:31:58 +00:00
|
|
|
target_link_libraries(ddio PRIVATE
|
2024-06-29 00:52:39 +00:00
|
|
|
SDL2::SDL2
|
2024-05-22 09:33:33 +00:00
|
|
|
ddebug
|
2024-09-10 09:40:19 +00:00
|
|
|
logger
|
2024-06-19 21:31:58 +00:00
|
|
|
mem
|
2024-05-22 09:33:33 +00:00
|
|
|
)
|
2024-05-22 21:59:23 +00:00
|
|
|
target_include_directories(ddio PUBLIC
|
2024-05-22 09:33:33 +00:00
|
|
|
$<BUILD_INTERFACE:
|
2024-05-22 21:59:23 +00:00
|
|
|
${PROJECT_SOURCE_DIR}/ddio
|
2024-05-22 09:33:33 +00:00
|
|
|
>
|
|
|
|
)
|
2024-09-11 10:20:12 +00:00
|
|
|
|
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|