add_library( ${TARGET} STATIC ) def_vars() list( APPEND SOURCES PRIVATE ${TARGET_ROOT}/pm_common/portmidi.c ${TARGET_ROOT}/pm_common/pmutil.c ${TARGET_ROOT}/porttime/porttime.c $<$: ${TARGET_ROOT}/pm_win/pmwin.c ${TARGET_ROOT}/pm_win/pmwinmm.c ${TARGET_ROOT}/porttime/ptwinmm.c > $<$: ${TARGET_ROOT}/pm_mac/finddefault.c ${TARGET_ROOT}/pm_mac/pmmac.c ${TARGET_ROOT}/pm_mac/pmmacosxcm.c ${TARGET_ROOT}/pm_mac/readbinaryplist.c ${TARGET_ROOT}/porttime/ptmacosx_mach.c > $<$: ${TARGET_ROOT}/pm_linux/finddefault.c ${TARGET_ROOT}/pm_linux/pmlinux.c ${TARGET_ROOT}/porttime/ptlinux.c > $<$: ${TARGET_ROOT}/pm_linux/pmlinuxalsa.c > ) list( APPEND INCLUDES PRIVATE ${TARGET_ROOT}/pm_common ${TARGET_ROOT}/porttime $<$: ${TARGET_ROOT}/pm_win > $<$: ${TARGET_ROOT}/pm_mac > $<$: ${TARGET_ROOT}/pm_linux > ) list( APPEND DEFINES PRIVATE $<$: PMALSA=1 > ) list( APPEND OPTIONS PRIVATE $<$: -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-implicit-function-declaration > ) list( APPEND LIBRARIES PUBLIC $<$: "-framework CoreMIDI" > $<$: compat > ) organize_source( "${TARGET_ROOT}" "" "${SOURCES}" ) target_sources( ${TARGET} PRIVATE ${SOURCES} ) target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} ) target_compile_options( ${TARGET} PRIVATE ${OPTIONS} ) target_include_directories( ${TARGET} PRIVATE ${INCLUDES} ) target_link_libraries( ${TARGET} INTERFACE ${LIBRARIES} )