2017-01-19 11:48:08 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
2017-01-19 21:27:35 +00:00
|
|
|
set(SPC_DRV drv_spcm_linux_drv_v214b5633.zip)
|
2017-01-19 11:48:08 +00:00
|
|
|
set(SPC_HEADERS
|
|
|
|
include/spcerr.h
|
|
|
|
include/regs.h
|
|
|
|
include/dlltyp.h
|
2017-01-19 21:27:35 +00:00
|
|
|
include/spcioctl.inc
|
|
|
|
include/spcm_drv.h)
|
2017-01-19 11:48:08 +00:00
|
|
|
|
|
|
|
add_custom_command(OUTPUT ${SPC_HEADERS}
|
2017-01-20 09:58:42 +00:00
|
|
|
COMMAND unzip -o -q -u ${SPC_DRV} "*.h" "*.txt" "*.inc" -d include/
|
2017-01-19 21:27:35 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
2017-01-19 11:48:08 +00:00
|
|
|
COMMENT "Unpacking SPC headers"
|
|
|
|
VERBATIM)
|
|
|
|
|
2017-01-19 21:27:35 +00:00
|
|
|
|
|
|
|
add_library(Spectrum-M2i40xxSeries STATIC Spectrum-M2i40xxSeries.cpp GatedData.cpp ${SPC_HEADERS})
|