Setup cmake project
This commit is contained in:
18
cmake/device/CMakeLists.txt
Normal file
18
cmake/device/CMakeLists.txt
Normal file
@ -0,0 +1,18 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
project(device)
|
||||
message(STATUS "Project " ${PROJECT_NAME})
|
||||
|
||||
include_directories(${CHURLOS_SRC_DIR})
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
|
||||
|
||||
# Add subdirectories
|
||||
add_subdirectory(bios)
|
||||
add_subdirectory(cpu)
|
||||
add_subdirectory(graphics)
|
||||
add_subdirectory(hid)
|
||||
add_subdirectory(interrupt)
|
||||
add_subdirectory(port)
|
||||
add_subdirectory(sound)
|
||||
add_subdirectory(time)
|
||||
5
cmake/device/bios/CMakeLists.txt
Normal file
5
cmake/device/bios/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/bios/BIOS.cc
|
||||
)
|
||||
5
cmake/device/cpu/CMakeLists.txt
Normal file
5
cmake/device/cpu/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
# target_sources(device PUBLIC
|
||||
# ${CHURLOS_SRC_DIR}/
|
||||
# )
|
||||
9
cmake/device/graphics/CMakeLists.txt
Normal file
9
cmake/device/graphics/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/graphics/CGA.cc
|
||||
${CHURLOS_SRC_DIR}/device/graphics/CGA_Stream.cc
|
||||
${CHURLOS_SRC_DIR}/device/graphics/Fonts.cc
|
||||
${CHURLOS_SRC_DIR}/device/graphics/LFBgraphics.cc
|
||||
${CHURLOS_SRC_DIR}/device/graphics/VESA.cc
|
||||
)
|
||||
5
cmake/device/hid/CMakeLists.txt
Normal file
5
cmake/device/hid/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/hid/Keyboard.cc
|
||||
)
|
||||
5
cmake/device/interrupt/CMakeLists.txt
Normal file
5
cmake/device/interrupt/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/interrupt/PIC.cc
|
||||
)
|
||||
5
cmake/device/port/CMakeLists.txt
Normal file
5
cmake/device/port/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/port/SerialOut.cc
|
||||
)
|
||||
5
cmake/device/sound/CMakeLists.txt
Normal file
5
cmake/device/sound/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/sound/PCSPK.cc
|
||||
)
|
||||
5
cmake/device/time/CMakeLists.txt
Normal file
5
cmake/device/time/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
target_sources(device PUBLIC
|
||||
${CHURLOS_SRC_DIR}/device/time/PIT.cc
|
||||
)
|
||||
Reference in New Issue
Block a user