add_library(
	StudioAppLib
		app.cpp
		clawviewer.cpp
		filedialogmanager.cpp
		font.cpp
		popups/about.cpp
		popups/deleteconfirmation.cpp
		popups/fileinfo.cpp
		popups/makecopy.cpp
		popups/newdir.cpp
		popups/newmenu.cpp
		popups/newproject.cpp
		popups/renamefile.cpp
		projectexplorer.cpp
		studioui.cpp
)
target_compile_definitions(
	StudioAppLib PUBLIC
		OLYMPIC_GUI_APP=1
		OLYMPIC_LOAD_STUDIO_MODULES=1
		OLYMPIC_APP_NAME="Studio"
)
target_link_libraries(
	StudioAppLib PUBLIC
		OxClArgs
		OxLogConn
		Studio
)

target_include_directories(
	StudioAppLib PUBLIC
		../include
)

install(
	DIRECTORY
		../include/studioapp
	DESTINATION
		include
)

install(
	TARGETS
		StudioAppLib
	DESTINATION
		LIBRARY DESTINATION lib
		ARCHIVE DESTINATION lib
)
