Add header files to cmake project.

So they appear in QtCreator.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-01-12 12:52:26 +00:00
parent 133285ba1c
commit 8e36c2c7b3
6 changed files with 168 additions and 8 deletions

View file

@ -1,6 +1,6 @@
include(FindPkgConfig)
add_library(appleii SHARED
set(SOURCE_FILES
Speaker.cpp
SoundCore.cpp
AY8910.cpp
@ -73,6 +73,90 @@ add_library(appleii SHARED
Z80VICE/daa.cpp
)
set(HEADER_FILES
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
Configuration/PropertySheetHelper.h
linux/windows/handles.h
linux/windows/files.h
linux/windows/resources.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
linux/interface.h
linux/data.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}
)
pkg_check_modules(YAML REQUIRED yaml-0.1)
pkg_check_modules(MINIZIP REQUIRED minizip)
find_package(Boost REQUIRED)

View file

@ -1,6 +1,6 @@
include(GNUInstallDirs)
add_library(common2 STATIC
set(SOURCE_FILES
resources.cpp
fileregistry.cpp
ptreeregistry.cpp
@ -10,6 +10,21 @@ add_library(common2 STATIC
speed.cpp
)
set(HEADER_FILES
resources.h
fileregistry.h
ptreeregistry.h
programoptions.h
utils.h
timer.h
speed.h
)
add_library(common2 STATIC
${SOURCE_FILES}
${HEADER_FILES}
)
find_package(Boost REQUIRED
COMPONENTS program_options
)

View file

@ -5,7 +5,7 @@ set(LIBRETRO_COMMON_PATH NONE CACHE PATH "path to libretro-common")
if (EXISTS ${LIBRETRO_COMMON_PATH}/include/libretro.h)
message("Using LIBRETRO_COMMON_PATH=${LIBRETRO_COMMON_PATH}")
add_library(applewin_libretro SHARED
set(SOURCE_FILES
environment.cpp
libretro.cpp
bitmaps.cpp
@ -19,6 +19,22 @@ if (EXISTS ${LIBRETRO_COMMON_PATH}/include/libretro.h)
retroregistry.cpp
)
set(HEADER_FILES
environment.h
rdirectsound.h
game.h
joypadbase.h
joypad.h
analog.h
rdirectsound.h
retroregistry.h
)
add_library(applewin_libretro SHARED
${SOURCE_FILES}
${HEADER_FILES}
)
target_include_directories(applewin_libretro PRIVATE
${LIBRETRO_COMMON_PATH}/include
)

View file

@ -1,6 +1,6 @@
include(FindPkgConfig)
add_executable(applen
set(SOURCE_FILES
main.cpp
world.cpp
colors.cpp
@ -10,6 +10,19 @@ add_executable(applen
bitmaps.cpp
)
set(HEADER_FILES
world.h
colors.h
evdevpaddle.h
nframe.h
asciiart.h
)
add_executable(applen
${SOURCE_FILES}
${HEADER_FILES}
)
pkg_search_module(NCURSESW REQUIRED ncursesw)
pkg_search_module(LIBEVDEV REQUIRED libevdev)

View file

@ -10,9 +10,8 @@ find_package(Qt5 REQUIRED
add_subdirectory(QHexView)
add_executable(qapple
set(SOURCE_FILES
main.cpp
qapple.qrc
qapple.cpp
qresources.cpp
preferences.cpp
@ -25,7 +24,28 @@ add_executable(qapple
loggingcategory.cpp
viewbuffer.cpp
qdirectsound.cpp
)
)
set(HEADER_FILES
applicationname.h
qapple.h
preferences.h
emulator.h
memorycontainer.h
gamepadpaddle.h
qvideo.h
configuration.h
options.h
loggingcategory.h
viewbuffer.h
qdirectsound.h
)
add_executable(qapple
${SOURCE_FILES}
${HEADER_FILES}
qapple.qrc
)
target_link_libraries(qapple PRIVATE
Qt5::Widgets

View file

@ -1,6 +1,6 @@
include(FindPkgConfig)
add_executable(sa2
set(SOURCE_FILES
main.cpp
bitmaps.cpp
emulator.cpp
@ -9,6 +9,18 @@ add_executable(sa2
utils.cpp
)
set(HEADER_FILES
emulator.h
gamepad.h
sdirectsound.h
utils.h
)
add_executable(sa2
${SOURCE_FILES}
${HEADER_FILES}
)
find_package(SDL2 REQUIRED)
pkg_search_module(SDL2_IMAGE REQUIRED SDL2_image)