# Copyright (c) 2025 Dominic Masters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # Sources target_sources(${DUSK_LIBRARY_TARGET_NAME} PUBLIC thread.c threadmutex.c ) # Compiler flags. if(DUSK_TARGET_SYSTEM STREQUAL "linux") target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC THREAD_PTHREAD=1 ) elseif(DUSK_TARGET_SYSTEM STREQUAL "psp") target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC THREAD_PTHREAD=1 ) elseif(DUSK_TARGET_SYSTEM STREQUAL "gamecube" OR DUSK_TARGET_SYSTEM STREQUAL "wii") target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC ) endif()