Descent3/ddio/CMakeLists.txt

45 lines
670 B
CMake
Raw Normal View History

set(HEADERS
chrono_timer.h
ddio.h
ddio_common.h
ddio_lnx.h
2024-09-16 18:55:04 +00:00
controller.h
sdlcontroller.h
)
set(CPPS
chrono_timer.cpp
ddio.cpp
file.cpp
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>:
lnxfile.cpp
>
$<$<PLATFORM_ID:Windows>:
winfile.cpp
>
)
add_library(ddio STATIC ${HEADERS} ${CPPS})
target_link_libraries(ddio PRIVATE
2024-06-29 00:52:39 +00:00
SDL2::SDL2
ddebug
logger
mem
)
2024-05-22 21:59:23 +00:00
target_include_directories(ddio PUBLIC
$<BUILD_INTERFACE:
2024-05-22 21:59:23 +00:00
${PROJECT_SOURCE_DIR}/ddio
>
)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()