2019-11-02 19:19:18 +00:00
|
|
|
include(FindPkgConfig)
|
|
|
|
|
2021-01-12 12:52:26 +00:00
|
|
|
set(SOURCE_FILES
|
2021-04-17 19:07:21 +01:00
|
|
|
Tfe/tfe.cpp
|
|
|
|
Tfe/tfearch.cpp
|
|
|
|
Tfe/tfesupp.cpp
|
|
|
|
|
2021-03-20 10:23:53 +00:00
|
|
|
Debugger/Debugger_Color.cpp
|
2021-03-07 20:32:24 +00:00
|
|
|
Debugger/Debugger_Disassembler.cpp
|
|
|
|
Debugger/Debugger_Symbols.cpp
|
|
|
|
Debugger/Debugger_DisassemblerData.cpp
|
|
|
|
Debugger/Debugger_Console.cpp
|
|
|
|
Debugger/Debugger_Assembler.cpp
|
|
|
|
Debugger/Debugger_Parser.cpp
|
|
|
|
Debugger/Debugger_Range.cpp
|
|
|
|
|
2021-03-24 18:56:50 +00:00
|
|
|
SSI263.cpp
|
2020-07-08 16:52:00 +01:00
|
|
|
Speaker.cpp
|
2020-07-01 18:27:40 +01:00
|
|
|
SoundCore.cpp
|
2020-06-30 15:43:06 +01:00
|
|
|
AY8910.cpp
|
|
|
|
Mockingboard.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
Pravets.cpp
|
|
|
|
Tape.cpp
|
|
|
|
YamlHelper.cpp
|
|
|
|
Log.cpp
|
|
|
|
Disk.cpp
|
2018-02-03 20:35:04 +00:00
|
|
|
DiskFormatTrack.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
DiskImage.cpp
|
|
|
|
DiskImageHelper.cpp
|
|
|
|
Harddisk.cpp
|
|
|
|
Memory.cpp
|
|
|
|
CPU.cpp
|
|
|
|
6821.cpp
|
|
|
|
NoSlotClock.cpp
|
|
|
|
SAM.cpp
|
|
|
|
z80emu.cpp
|
|
|
|
ParallelPrinter.cpp
|
|
|
|
MouseInterface.cpp
|
2018-11-03 19:20:08 +00:00
|
|
|
LanguageCard.cpp
|
2019-04-19 20:55:23 +01:00
|
|
|
RGBMonitor.cpp
|
2019-11-17 13:57:34 +00:00
|
|
|
NTSC.cpp
|
|
|
|
NTSC_CharSet.cpp
|
2019-12-31 18:19:45 +00:00
|
|
|
CardManager.cpp
|
|
|
|
Disk2CardManager.cpp
|
2020-06-30 15:43:06 +01:00
|
|
|
Riff.cpp
|
2020-10-12 20:58:32 +01:00
|
|
|
SaveState.cpp
|
|
|
|
SynchronousEventManager.cpp
|
2020-11-22 09:36:28 +00:00
|
|
|
Video.cpp
|
2020-11-27 13:48:53 +00:00
|
|
|
Core.cpp
|
|
|
|
Utilities.cpp
|
2020-12-27 20:25:42 +00:00
|
|
|
FrameBase.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
|
2020-07-06 19:29:18 +01:00
|
|
|
Configuration/PropertySheetHelper.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
|
2019-11-23 18:17:44 +00:00
|
|
|
linux/windows/handles.cpp
|
|
|
|
linux/windows/files.cpp
|
|
|
|
linux/windows/time.cpp
|
|
|
|
linux/windows/stringcb.cpp
|
|
|
|
linux/windows/strings.cpp
|
|
|
|
linux/windows/misc.cpp
|
2020-02-22 19:00:42 +00:00
|
|
|
linux/windows/winbase.cpp
|
2020-06-14 09:18:18 +01:00
|
|
|
linux/windows/winuser.cpp
|
2020-06-30 15:43:06 +01:00
|
|
|
linux/windows/dsound.cpp
|
2020-07-01 18:27:40 +01:00
|
|
|
linux/windows/guiddef.cpp
|
|
|
|
linux/windows/dmusicc.cpp
|
2020-10-06 20:57:18 +01:00
|
|
|
linux/windows/winnls.cpp
|
2019-11-23 18:17:44 +00:00
|
|
|
|
2021-01-20 18:17:34 +00:00
|
|
|
linux/resources.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
linux/benchmark.cpp
|
|
|
|
linux/paddle.cpp
|
2018-02-06 16:50:50 +00:00
|
|
|
linux/version.cpp
|
2019-08-26 10:27:38 +01:00
|
|
|
linux/registry.cpp
|
2019-12-07 11:20:37 +00:00
|
|
|
linux/keyboard.cpp
|
2020-12-27 20:25:42 +00:00
|
|
|
linux/linuxframe.cpp
|
2021-01-10 11:47:44 +00:00
|
|
|
linux/context.cpp
|
2017-10-10 09:26:08 +01:00
|
|
|
|
2019-12-31 18:34:16 +00:00
|
|
|
linux/duplicates/Debug.cpp
|
2021-03-20 10:23:53 +00:00
|
|
|
linux/duplicates/Debug_Display.cpp
|
2019-11-16 17:01:11 +00:00
|
|
|
linux/duplicates/Joystick.cpp
|
|
|
|
linux/duplicates/SerialComms.cpp
|
2020-12-20 16:35:44 +00:00
|
|
|
linux/duplicates/PropertySheet.cpp
|
2019-11-16 17:01:11 +00:00
|
|
|
|
2017-10-10 09:26:08 +01:00
|
|
|
Z80VICE/z80.cpp
|
|
|
|
Z80VICE/z80mem.cpp
|
|
|
|
Z80VICE/daa.cpp
|
|
|
|
)
|
|
|
|
|
2021-01-12 12:52:26 +00:00
|
|
|
set(HEADER_FILES
|
2021-03-24 18:56:50 +00:00
|
|
|
SSI263.h
|
|
|
|
SSI263Phonemes.h
|
2021-01-12 12:52:26 +00:00
|
|
|
Speaker.h
|
|
|
|
SoundCore.h
|
|
|
|
AY8910.h
|
|
|
|
Mockingboard.h
|
|
|
|
Pravets.h
|
|
|
|
Tape.h
|
|
|
|
YamlHelper.h
|
|
|
|
Log.h
|
|
|
|
Disk.h
|
|
|
|
DiskFormatTrack.h
|
|
|
|
DiskImage.h
|
|
|
|
DiskImageHelper.h
|
|
|
|
Harddisk.h
|
|
|
|
Memory.h
|
|
|
|
CPU.h
|
|
|
|
6821.h
|
|
|
|
NoSlotClock.h
|
|
|
|
SAM.h
|
|
|
|
z80emu.h
|
|
|
|
ParallelPrinter.h
|
|
|
|
MouseInterface.h
|
|
|
|
LanguageCard.h
|
|
|
|
RGBMonitor.h
|
|
|
|
NTSC.h
|
|
|
|
NTSC_CharSet.h
|
|
|
|
CardManager.h
|
|
|
|
Disk2CardManager.h
|
|
|
|
Riff.h
|
|
|
|
SaveState.h
|
|
|
|
SynchronousEventManager.h
|
|
|
|
Video.h
|
|
|
|
Core.h
|
|
|
|
Utilities.h
|
|
|
|
FrameBase.h
|
|
|
|
|
|
|
|
Common.h
|
|
|
|
DiskDefs.h
|
|
|
|
DiskLog.h
|
|
|
|
Interface.h
|
|
|
|
SaveState_Structs_common.h
|
|
|
|
SaveState_Structs_v1.h
|
|
|
|
|
2021-01-20 18:17:34 +00:00
|
|
|
Debugger/Debug.h
|
|
|
|
|
2021-01-12 12:52:26 +00:00
|
|
|
Configuration/PropertySheetHelper.h
|
|
|
|
|
|
|
|
linux/windows/handles.h
|
|
|
|
linux/windows/files.h
|
|
|
|
linux/windows/bitmap.h
|
|
|
|
linux/windows/time.h
|
|
|
|
linux/windows/stringcb.h
|
|
|
|
linux/windows/strings.h
|
|
|
|
linux/windows/misc.h
|
|
|
|
linux/windows/winbase.h
|
|
|
|
linux/windows/winuser.h
|
|
|
|
linux/windows/dsound.h
|
|
|
|
linux/windows/guiddef.h
|
|
|
|
linux/windows/dmusicc.h
|
|
|
|
linux/windows/winnls.h
|
|
|
|
linux/windows/gdi.h
|
|
|
|
linux/windows/mmreg.h
|
|
|
|
linux/windows/mmsystem.h
|
|
|
|
|
2021-01-20 18:17:34 +00:00
|
|
|
linux/resources.h
|
2021-01-12 12:52:26 +00:00
|
|
|
linux/interface.h
|
|
|
|
linux/benchmark.h
|
|
|
|
linux/paddle.h
|
|
|
|
linux/version.h
|
|
|
|
linux/registry.h
|
|
|
|
linux/keyboard.h
|
|
|
|
linux/linuxframe.h
|
|
|
|
linux/win.h
|
|
|
|
|
|
|
|
Z80VICE/z80.h
|
|
|
|
Z80VICE/z80mem.h
|
|
|
|
Z80VICE/z80regs.h
|
|
|
|
Z80VICE/daa.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(appleii SHARED
|
|
|
|
${SOURCE_FILES}
|
|
|
|
${HEADER_FILES}
|
|
|
|
)
|
|
|
|
|
2019-11-02 19:19:18 +00:00
|
|
|
pkg_check_modules(YAML REQUIRED yaml-0.1)
|
|
|
|
pkg_check_modules(MINIZIP REQUIRED minizip)
|
2021-04-17 19:07:21 +01:00
|
|
|
pkg_check_modules(PCAP REQUIRED libpcap)
|
2019-11-02 19:19:18 +00:00
|
|
|
find_package(Boost REQUIRED)
|
|
|
|
|
|
|
|
target_include_directories(appleii PRIVATE
|
|
|
|
${YAML_INCLUDE_DIRS}
|
2021-04-17 19:07:21 +01:00
|
|
|
${PCAP_INCLUDE_DIRS}
|
2019-11-02 19:19:18 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2019-12-31 18:34:16 +00:00
|
|
|
Debugger
|
2019-11-02 19:19:18 +00:00
|
|
|
)
|
|
|
|
|
2020-11-12 18:43:04 +00:00
|
|
|
# this one appears in header files
|
|
|
|
target_include_directories(appleii PUBLIC
|
|
|
|
${MINIZIP_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
2019-12-01 15:22:17 +00:00
|
|
|
target_link_libraries(appleii PRIVATE
|
2019-11-02 19:19:18 +00:00
|
|
|
${YAML_LIBRARIES}
|
|
|
|
${MINIZIP_LIBRARIES}
|
2021-04-17 19:07:21 +01:00
|
|
|
${PCAP_LIBRARIES}
|
2017-10-10 09:26:08 +01:00
|
|
|
)
|
2020-07-12 15:53:53 +01:00
|
|
|
|
2021-02-07 13:46:21 +00:00
|
|
|
target_compile_options(appleii PUBLIC
|
|
|
|
-Wno-multichar
|
|
|
|
)
|
|
|
|
|
2021-03-13 20:56:19 +00:00
|
|
|
add_custom_command(
|
|
|
|
TARGET appleii POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/bin/*.SYM ${CMAKE_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
2020-10-06 20:58:43 +01:00
|
|
|
install(TARGETS appleii
|
|
|
|
DESTINATION lib)
|