mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-04-19 13:57:26 -05:00
38 lines
775 B
CMake
38 lines
775 B
CMake
add_executable(dolphin-tool
|
|
ToolHeadlessPlatform.cpp
|
|
ExtractCommand.cpp
|
|
ExtractCommand.h
|
|
ConvertCommand.cpp
|
|
ConvertCommand.h
|
|
VerifyCommand.cpp
|
|
VerifyCommand.h
|
|
HeaderCommand.cpp
|
|
HeaderCommand.h
|
|
ToolMain.cpp
|
|
)
|
|
|
|
if (WIN32)
|
|
target_sources(dolphin-tool PRIVATE DolphinTool.exe.manifest DolphinTool.rc)
|
|
|
|
set_target_properties(dolphin-tool PROPERTIES
|
|
DEBUG_POSTFIX D
|
|
OUTPUT_NAME DolphinTool
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(dolphin-tool
|
|
PRIVATE
|
|
discio
|
|
uicommon
|
|
cpp-optparse
|
|
fmt::fmt
|
|
)
|
|
|
|
if(MSVC)
|
|
# Add precompiled header
|
|
target_link_libraries(dolphin-tool PRIVATE use_pch)
|
|
endif()
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool)
|
|
install(TARGETS dolphin-tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|