24 lines
502 B
CMake
24 lines
502 B
CMake
# Copyright (c) 2025 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# Sources
|
|
target_sources(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
time.c
|
|
)
|
|
|
|
# Compiler defs
|
|
if(DUSK_TARGET_SYSTEM STREQUAL "linux")
|
|
target_compile_definitions(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
TIME_SDL2=1
|
|
)
|
|
elseif(DUSK_TARGET_SYSTEM STREQUAL "psp")
|
|
target_compile_definitions(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
TIME_FIXED=1
|
|
TIME_PLATFORM_STEP=0.016
|
|
)
|
|
endif() |