CMake hierarchy cleanup.
This commit is contained in:
parent
ad6ee9a0e5
commit
7d906e08f8
|
|
@ -10,42 +10,13 @@ find_package(fmt CONFIG REQUIRED)
|
||||||
find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
find_package(VulkanMemoryAllocator CONFIG REQUIRED)
|
||||||
find_package(EASTL CONFIG REQUIRED)
|
find_package(EASTL CONFIG REQUIRED)
|
||||||
|
|
||||||
set(HEADER_FILES
|
add_library(aster_core STATIC)
|
||||||
"include/aster/core/global.h"
|
|
||||||
"include/aster/util/logger.h"
|
|
||||||
"include/aster/core/constants.h"
|
|
||||||
"include/aster/core/config.h"
|
|
||||||
"include/aster/core/context.h"
|
|
||||||
"include/aster/core/physical_device.h"
|
|
||||||
"include/aster/core/device.h"
|
|
||||||
"include/aster/core/swapchain.h"
|
|
||||||
"include/aster/core/pipeline.h"
|
|
||||||
"include/aster/core/queue_allocation.h"
|
|
||||||
"include/aster/core/buffer.h"
|
|
||||||
"include/aster/core/image.h"
|
|
||||||
"include/aster/core/surface.h"
|
|
||||||
"include/aster/core/size.h"
|
|
||||||
"include/aster/core/window.h"
|
|
||||||
"include/aster/aster.h")
|
|
||||||
|
|
||||||
set(SOURCE_FILES
|
add_subdirectory("include")
|
||||||
"src/aster/core/global.cpp"
|
add_subdirectory("src")
|
||||||
"src/aster/util/logger.cpp"
|
|
||||||
"src/aster/core/context.cpp"
|
|
||||||
"src/aster/core/physical_device.cpp"
|
|
||||||
"src/aster/core/device.cpp"
|
|
||||||
"src/aster/core/swapchain.cpp"
|
|
||||||
"src/aster/core/pipeline.cpp"
|
|
||||||
"src/aster/core/buffer.cpp"
|
|
||||||
"src/aster/core/image.cpp"
|
|
||||||
"src/aster/core/surface.cpp"
|
|
||||||
"src/aster/core/window.cpp")
|
|
||||||
|
|
||||||
add_library(aster_core STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
|
||||||
set_property(TARGET aster_core PROPERTY CXX_STANDARD 20)
|
set_property(TARGET aster_core PROPERTY CXX_STANDARD 20)
|
||||||
|
|
||||||
target_precompile_headers(aster_core PUBLIC "include/aster/aster.h")
|
|
||||||
|
|
||||||
target_include_directories(aster_core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include/aster")
|
target_include_directories(aster_core PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include/aster")
|
||||||
target_include_directories(aster_core PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
target_include_directories(aster_core PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
add_subdirectory("aster")
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
add_subdirectory("core")
|
||||||
|
add_subdirectory("util")
|
||||||
|
|
||||||
|
target_sources(aster_core
|
||||||
|
PUBLIC "aster.h")
|
||||||
|
|
||||||
|
target_precompile_headers(aster_core PUBLIC "aster.h")
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Core Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
target_sources(aster_core
|
||||||
|
INTERFACE
|
||||||
|
"global.h"
|
||||||
|
"constants.h"
|
||||||
|
"config.h"
|
||||||
|
"context.h"
|
||||||
|
"physical_device.h"
|
||||||
|
"device.h"
|
||||||
|
"swapchain.h"
|
||||||
|
"pipeline.h"
|
||||||
|
"queue_allocation.h"
|
||||||
|
"buffer.h"
|
||||||
|
"image.h"
|
||||||
|
"surface.h"
|
||||||
|
"size.h"
|
||||||
|
"window.h")
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
target_sources(aster_core
|
||||||
|
INTERFACE "logger.h")
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
add_subdirectory("aster")
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
add_subdirectory("core")
|
||||||
|
add_subdirectory("util")
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
target_sources(aster_core
|
||||||
|
PRIVATE
|
||||||
|
"global.cpp"
|
||||||
|
"context.cpp"
|
||||||
|
"physical_device.cpp"
|
||||||
|
"device.cpp"
|
||||||
|
"swapchain.cpp"
|
||||||
|
"pipeline.cpp"
|
||||||
|
"buffer.cpp"
|
||||||
|
"image.cpp"
|
||||||
|
"surface.cpp"
|
||||||
|
"window.cpp")
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# CMakeList.txt ; CMake project for Aster Util Headers
|
||||||
|
|
||||||
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
|
target_sources(aster_core PRIVATE "logger.cpp")
|
||||||
Loading…
Reference in New Issue