file(GLOB tool_sources
	*.c *.h
	cmd/*.c cmd/*.h)

if (WIN32)
	set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/frontend.rc)
endif ()

add_executable(mie-tool ${tool_sources} ${rc_file})
target_link_libraries(
	mie-tool
	mie
	Bluelib::Core
	Bluelib::Ds
	Bluelib::Cmd)

set_target_properties(mie-tool PROPERTIES OUTPUT_NAME "mie")
target_compile_definitions(mie-tool PRIVATE MIE_STATIC=${MIE_STATIC})
