2023-10-13 15:00:08 -04:00
|
|
|
# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
find_package(spirv_cross_core REQUIRED)
|
|
|
|
find_package(spirv_cross_glsl REQUIRED)
|
|
|
|
find_package(SPIRV-Headers REQUIRED)
|
|
|
|
|
|
|
|
add_library(shpkpart STATIC)
|
|
|
|
target_sources(shpkpart PRIVATE shpkpart.cpp)
|
2023-12-10 06:51:33 -05:00
|
|
|
target_link_libraries(shpkpart
|
|
|
|
PUBLIC
|
2023-12-09 21:51:57 -05:00
|
|
|
Novus::Common
|
|
|
|
Physis::Physis
|
|
|
|
dxbc
|
|
|
|
spirv-cross-core
|
|
|
|
spirv-cross-glsl
|
|
|
|
Qt6::Core
|
|
|
|
Qt6::Widgets)
|
2023-10-13 15:00:08 -04:00
|
|
|
target_include_directories(shpkpart PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
2023-12-09 21:51:57 -05:00
|
|
|
target_compile_options(shpkpart PRIVATE -fexceptions)
|
2024-02-04 15:36:08 -05:00
|
|
|
target_compile_definitions(shpkpart PRIVATE TRANSLATION_DOMAIN="novus")
|
2023-12-09 21:51:57 -05:00
|
|
|
|
|
|
|
add_library(Novus::ShpkPart ALIAS shpkpart)
|