<commit_before>set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

add_executable(
	nostalgia-studio MACOSX_BUNDLE
		json_read.cpp
		json_write.cpp
		main.cpp
		mainwindow.cpp
		oxfstreeview.cpp
		studiorsrc.qrc
)

target_link_libraries(
	nostalgia-studio
		QDarkStyle
		NostalgiaCore-Studio
		NostalgiaStudio
		NostalgiaPack
)

# enable LTO
set_property(TARGET nostalgia-studio PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)

if(APPLE)
	set_target_properties(nostalgia-studio PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
endif()

install(
	FILES
		nostalgia-studio.json
	DESTINATION
		${NOSTALGIA_DIST_RESOURCES}
)

install(
	TARGETS
		nostalgia-studio
	RUNTIME DESTINATION
		${NOSTALGIA_DIST_BIN}
	BUNDLE DESTINATION .
)

add_executable(
	NostalgiaStudioJsonTest
		json_read.cpp
		json_write.cpp
		json_test.cpp
)

target_link_libraries(
	NostalgiaStudioJsonTest
		OxStd
		Qt5::Widgets
)

add_test("Test NostalgiaStudioJson" NostalgiaStudioJsonTest)

add_subdirectory(lib)<commit_msg>[nostalgia/studio] Add package name to test output<commit_after>set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

add_executable(
	nostalgia-studio MACOSX_BUNDLE
		json_read.cpp
		json_write.cpp
		main.cpp
		mainwindow.cpp
		oxfstreeview.cpp
		studiorsrc.qrc
)

target_link_libraries(
	nostalgia-studio
		QDarkStyle
		NostalgiaCore-Studio
		NostalgiaStudio
		NostalgiaPack
)

# enable LTO
set_property(TARGET nostalgia-studio PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)

if(APPLE)
	set_target_properties(nostalgia-studio PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
endif()

install(
	FILES
		nostalgia-studio.json
	DESTINATION
		${NOSTALGIA_DIST_RESOURCES}
)

install(
	TARGETS
		nostalgia-studio
	RUNTIME DESTINATION
		${NOSTALGIA_DIST_BIN}
	BUNDLE DESTINATION .
)

add_executable(
	NostalgiaStudioJsonTest
		json_read.cpp
		json_write.cpp
		json_test.cpp
)

target_link_libraries(
	NostalgiaStudioJsonTest
		OxStd
		Qt5::Widgets
)

add_test("[nostalgia/studio] NostalgiaStudioJson" NostalgiaStudioJsonTest)

add_subdirectory(lib)
{'fraction_non_alphanumeric': 0.06557377049180328, 'fraction_numerical': 0.000936768149882904, 'mean_word_length': 6.096345514950166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '230665', 'n_tokens_mistral': 964, 'n_tokens_neox': 854, 'n_words': 125}