2021-12-03 14:40:19 -07:00
|
|
|
add_executable(dolphin-tool
|
|
|
|
ToolHeadlessPlatform.cpp
|
2024-04-18 04:08:45 -06:00
|
|
|
ExtractCommand.cpp
|
|
|
|
ExtractCommand.h
|
2021-12-03 14:40:19 -07:00
|
|
|
ConvertCommand.cpp
|
|
|
|
ConvertCommand.h
|
|
|
|
VerifyCommand.cpp
|
|
|
|
VerifyCommand.h
|
2022-02-24 03:51:52 -07:00
|
|
|
HeaderCommand.cpp
|
|
|
|
HeaderCommand.h
|
2021-12-03 14:40:19 -07:00
|
|
|
ToolMain.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(dolphin-tool PROPERTIES OUTPUT_NAME dolphin-tool)
|
|
|
|
|
|
|
|
target_link_libraries(dolphin-tool
|
|
|
|
PRIVATE
|
|
|
|
discio
|
2022-01-02 01:07:37 -07:00
|
|
|
uicommon
|
2021-12-03 14:40:19 -07:00
|
|
|
cpp-optparse
|
2023-06-16 17:59:30 -06:00
|
|
|
fmt::fmt
|
2021-12-03 14:40:19 -07:00
|
|
|
)
|
|
|
|
|
2022-05-21 17:19:44 -06:00
|
|
|
if(MSVC)
|
|
|
|
# Add precompiled header
|
|
|
|
target_link_libraries(dolphin-tool PRIVATE use_pch)
|
|
|
|
endif()
|
|
|
|
|
2021-12-03 14:40:19 -07:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool)
|
2022-10-11 12:44:04 -06:00
|
|
|
install(TARGETS dolphin-tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|