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