damaris-backends/drivers/Spectrum-MI40xxSeries/CMakeLists.txt
Markus Rosenstihl e73407f64c cmake configurations
* pulseblaster kernel module now building with cmake
* each driver has own CMakeLists.txt
2017-01-19 21:27:35 +00:00

18 lines
518 B
CMake

cmake_minimum_required(VERSION 3.0)
set( SPC_DRV drv_header_v402b6844.zip)
set(SPC_HEADERS
include/spcerr.h
include/regs.h
include/dlltyp.h
include/spcioctl.inc)
add_custom_command(OUTPUT ${SPC_HEADERS}
COMMAND unzip -u ${SPC_DRV} "*.h" "*.txt" "*.inc" -d include/
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Unpacking SPC headers"
VERBATIM)
add_library(Spectrum_MI40xxSeries STATIC Spectrum-MI40xxSeries.cpp GatedData.cpp ${SPC_HEADERS})