forked from kstenerud/Musashi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (39 loc) · 1.34 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.16)
# Set the project name
project(68kEmu)
# Add sub directories
add_library(68kEmu STATIC)
set(SOURCES_MUSASHI
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68k.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kconf.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kcpu.c
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kcpu.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kdasm.c
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kfpu.c
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kmmu.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kops.c
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/m68kops.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/mamesf.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/milieu.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/softfloat.c
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/softfloat.h
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/softfloat-macros
${CMAKE_CURRENT_SOURCE_DIR}/Musashi/softfloat/softfloat-specialize
)
set(SOURCES
gpt.cpp gpt.h
hdi08.cpp hdi08.h
hdi08periph.h
logging.cpp logging.h
mc68k.cpp mc68k.h
peripheralBase.cpp peripheralBase.h
peripheralTypes.h
port.cpp port.h
qsm.cpp qsm.h
qspi.cpp qspi.h
sim.cpp sim.h
)
target_sources(68kEmu PRIVATE ${SOURCES} ${SOURCES_MUSASHI})
source_group("source" FILES ${SOURCES})
source_group("source\\Musashi" FILES ${SOURCES_MUSASHI})
set_property(TARGET 68kEmu PROPERTY CXX_STANDARD 17)