add_library(
	NostalgiaCore-Studio OBJECT
		#import_tilesheet_wizard.cpp
		module.cpp
		#new_tilesheet_wizard.cpp
		#newpalettewizard.cpp
		paletteeditor.cpp
		paletteeditor-imgui.cpp
		tilesheeteditor-imgui.cpp
		tilesheeteditorview.cpp
		tilesheeteditormodel.cpp
		tilesheetpixelgrid.cpp
		tilesheetpixels.cpp
)

if(NOT MSVC)
	target_compile_options(NostalgiaCore-Studio PRIVATE -Wsign-conversion)
endif()

target_link_libraries(
	NostalgiaCore-Studio PUBLIC
		NostalgiaStudio
		NostalgiaCore
		NostalgiaGlUtils
		lodepng
)

#target_compile_definitions(NostalgiaCore-Studio PRIVATE QT_QML_DEBUG)

install(
	TARGETS
		NostalgiaCore-Studio
	LIBRARY DESTINATION
		${NOSTALGIA_DIST_MODULE}
)
