2024-08-09 15:00:30 +00:00
|
|
|
set(HEADERS
|
|
|
|
chrono_timer.h
|
|
|
|
ddio.h
|
|
|
|
ddio_common.h
|
2024-08-17 13:53:07 +00:00
|
|
|
ddio_lnx.h)
|
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-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-06-19 21:31:58 +00:00
|
|
|
mem
|
2024-06-26 21:09:50 +00:00
|
|
|
misc
|
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
|
|
|
>
|
|
|
|
)
|