-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
8 lines (6 loc) · 1.41 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
cmake_minimum_required(VERSION 3.11)
project(ATTiny13-emulator)
set(CMAKE_CXX_STANDARD 11)
add_definitions(-DVERSION_NUMBER="1.0.0-Beta")
set(HEADERS src/instruction/ALU/ADD.h src/instruction/Instructions.h src/instruction/ALU/DEC.h src/instruction/NOP.h src/emulationEnv/Emulator.cpp src/emulationEnv/Emulator.h src/instruction/branch/RJMP.h src/hexfile/HexLoader.cpp src/hexfile/HexLoader.h src/Utils.h src/ATTinyMemory/SRAM.cpp src/ATTinyMemory/SRAM.h src/instruction/ALU/INC.h src/instruction/ALU/SUB.h src/instruction/ALU/NEG.h src/instruction/ALU/COM.h src/instruction/ALU/AND.h src/instruction/ALU/ANDI.h src/instruction/ALU/OR.h src/instruction/ALU/ORI.h src/instruction/ALU/EOR.h src/instruction/ALU/ADC.h src/instruction/ALU/SBC.h src/instruction/ALU/SUBI.h src/instruction/ALU/SBCI.h src/instruction/ALU/SBIW.h src/instruction/ALU/ADIW.h src/instruction/memory/PUSH_POP.h src/instruction/branch/RET_CALL.h src/instruction/memory/MOV.h src/instruction/memory/STS.h src/instruction/memory/LDS.h src/instruction/memory/LDI.h src/instruction/branch/CP.h src/instruction/bit/LSR.h src/instruction/bit/SBI_CBI.h src/instruction/bit/BST_BLD.h src/instruction/bit/BCLR.h src/instruction/branch/Branch.h)
add_executable(emulate src/main.cpp ${HEADERS} src/ATTinyMemory/ATtiny13.cpp src/ATTinyMemory/ATtiny13.h src/instruction/Instruction.cpp src/instruction/Instruction.h src/emulationEnv/InstructionSet.cpp src/emulationEnv/InstructionSet.h)