mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 12:08:56 +00:00
24e0c315e1
Implementing static ChronoTimer class based on C++11 chrono library that replaces platform dependent time measurement implementation.
34 lines
546 B
CMake
34 lines
546 B
CMake
set(CPPS
|
|
chrono_timer.cpp
|
|
ddio.cpp
|
|
key.cpp
|
|
$<$<PLATFORM_ID:Darwin,Linux>:
|
|
lnxfile.cpp
|
|
lnxforcefeedback.cpp
|
|
lnxio.cpp
|
|
sdljoy.cpp
|
|
lnxkey.cpp
|
|
lnxkey_null.cpp
|
|
lnxmouse.cpp
|
|
lnxcdrom.cpp
|
|
lnxkey_sdl.cpp
|
|
>
|
|
$<$<PLATFORM_ID:Windows>:
|
|
winfile.cpp
|
|
winforcefeedback.cpp
|
|
winio.cpp
|
|
winjoy.cpp
|
|
winkey.cpp
|
|
winmouse.cpp
|
|
>
|
|
)
|
|
add_library(ddio STATIC ${CPPS})
|
|
target_link_libraries(ddio
|
|
ddebug
|
|
)
|
|
target_include_directories(ddio PUBLIC
|
|
$<BUILD_INTERFACE:
|
|
${PROJECT_SOURCE_DIR}/ddio
|
|
>
|
|
)
|