1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-02 16:17:44 +00:00
novus/mateditor/CMakeLists.txt
Joshua Goins 51ea3c3920 Create reusable material part
This takes the existing properties widget in the new material editor and
makes it reusable across multiple applications. It's now added to the
Armoury which shows the gear's used materials. It's also added to the
Data Explorer which now supports viewing material files.

I fixed the render viewport crashing when hiding it again, and made it
even more resilient.
2024-04-27 13:45:15 -04:00

35 lines
No EOL
952 B
CMake

# SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
add_executable(novus-mateditor)
target_sources(novus-mateditor
PRIVATE
include/mainwindow.h
include/materialview.h
src/main.cpp
src/mainwindow.cpp
src/materialview.cpp)
target_include_directories(novus-mateditor
PUBLIC
include)
target_link_libraries(novus-mateditor
PRIVATE
Novus::Common
Novus::MdlPart
Novus::MtrlPart
Physis::Physis
Physis::Logger
KF6::I18n
Qt6::Core
Qt6::Widgets)
install(TARGETS novus-mateditor ${KF${QT_MAJOR_VERSION}_INSTALL_TARGETS_DEFAULT_ARGS})
if (WIN32)
set_target_properties(novus-mateditor PROPERTIES
WIN32_EXECUTABLE TRUE
OUTPUT_NAME "MaterialEdtiro")
install(FILES $<TARGET_RUNTIME_DLLS:novus-mateditor> DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()