8 lines
617 B
CMake
8 lines
617 B
CMake
set(X16_DIR ${CMAKE_CURRENT_SOURCE_DIR}/x16emu)
|
|
set(YMFM_DIR ${X16_DIR}/ymfm/src)
|
|
set(BACKEND_ZSM_SRC ${CMAKE_CURRENT_SOURCE_DIR}/zsm_backend.cpp ${X16_DIR}/vera_pcm.c ${X16_DIR}/vera_psg.c ${X16_DIR}/ymglue.cpp ${YMFM_DIR}/ymfm_adpcm.cpp ${YMFM_DIR}/ymfm_opl.cpp ${YMFM_DIR}/ymfm_opm.cpp ${YMFM_DIR}/ymfm_pcm.cpp)
|
|
set(BACKEND_ZSM_INC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${YMFM_DIR} ${X16_DIR})
|
|
add_playback_backend(zsm_backend ${BACKEND_ZSM_SRC})
|
|
target_include_directories(zsm_backend PRIVATE ${BACKEND_ZSM_INC})
|
|
find_package(OpenMP)
|
|
target_link_libraries(zsm_backend PUBLIC OpenMP::OpenMP_CXX)
|