CMakeLists.txt (888B)
1 cmake_minimum_required(VERSION 3.10) 2 project(xtLib) 3 4 add_library(xtLib STATIC) 5 6 set(SOURCES 7 xt.cpp xt.h 8 xtButtons.cpp xtButtons.h 9 xtDevice.cpp xtDevice.h 10 xtDSP.cpp xtDSP.h 11 xtFlash.cpp xtFlash.h 12 xtHardware.cpp xtHardware.h 13 xtId.cpp xtId.h 14 xtLcd.cpp xtLcd.h 15 xtLeds.cpp xtLeds.h 16 xtMidi.cpp xtMidi.h 17 xtMidiTypes.h 18 xtPic.cpp xtPic.h 19 xtRom.cpp xtRom.h 20 xtRomLoader.cpp xtRomLoader.h 21 xtRomWaves.cpp xtRomWaves.h 22 xtState.cpp xtState.h 23 xtSysexRemoteControl.cpp xtSysexRemoteControl.h 24 xtTypes.h 25 xtUc.cpp xtUc.h 26 xtWavePreview.cpp xtWavePreview.h 27 ) 28 29 target_sources(xtLib PRIVATE ${SOURCES}) 30 source_group("source" FILES ${SOURCES}) 31 32 target_link_libraries(xtLib PUBLIC wLib) 33 34 if(DSP56300_DEBUGGER) 35 target_link_libraries(xtLib PUBLIC dsp56kDebugger) 36 endif() 37 38 set_property(TARGET xtLib PROPERTY FOLDER "Xenia") 39 40 target_include_directories(xtLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)