mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-03 12:30:08 +00:00
cmake: Add header files in CMakeLists.txt.
So they will appear in Xcode project. mkdir -p dingusppc/build-xcode cd dingusppc/build-xcode cmake -G Xcode .. xcodebuild -configuration Release
This commit is contained in:
parent
2b3cf58b8a
commit
15e132c824
@ -1,6 +1,8 @@
|
||||
include_directories("${PROJECT_SOURCE_DIR}"
|
||||
"${PROJECT_SOURCE_DIR}/thirdparty/loguru/")
|
||||
|
||||
file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
|
||||
file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
|
||||
)
|
||||
|
||||
add_library(cpu_ppc OBJECT ${SOURCES})
|
||||
|
@ -20,6 +20,22 @@ platform_glob(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/sound/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/storage/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/video/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/adb/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/firewire/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/i2c/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/ata/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/pci/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/scsi/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/common/usb/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ethernet/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/floppy/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/ioctrl/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/memctrl/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/serial/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/sound/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/storage/*.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/video/*.h"
|
||||
)
|
||||
|
||||
add_library(devices OBJECT ${SOURCES})
|
||||
|
@ -4,7 +4,9 @@ include_directories("${PROJECT_SOURCE_DIR}"
|
||||
"${PROJECT_SOURCE_DIR}/devices"
|
||||
"${PROJECT_SOURCE_DIR}/thirdparty/loguru/")
|
||||
|
||||
file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
|
||||
file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
|
||||
)
|
||||
|
||||
add_library(machines OBJECT ${SOURCES})
|
||||
target_link_libraries(machines PRIVATE)
|
||||
|
Loading…
Reference in New Issue
Block a user