| 1 |
add_executable(dolphin-tool |
| 2 |
ToolHeadlessPlatform.cpp |
| 3 |
ExtractCommand.cpp |
| 4 |
ExtractCommand.h |
| 5 |
ConvertCommand.cpp |
| 6 |
ConvertCommand.h |
| 7 |
VerifyCommand.cpp |
| 8 |
VerifyCommand.h |
| 9 |
HeaderCommand.cpp |
| 10 |
HeaderCommand.h |
| 11 |
ToolMain.cpp |
| 12 |
) |
| 13 |
|
| 14 |
if (WIN32) |
| 15 |
target_sources(dolphin-tool PRIVATE DolphinTool.exe.manifest DolphinTool.rc) |
| 16 |
|
| 17 |
set_target_properties(dolphin-tool PROPERTIES |
| 18 |
DEBUG_POSTFIX D |
| 19 |
OUTPUT_NAME DolphinTool |
| 20 |
) |
| 21 |
endif() |
| 22 |
|
| 23 |
target_link_libraries(dolphin-tool |
| 24 |
PRIVATE |
| 25 |
discio |
| 26 |
uicommon |
| 27 |
cpp-optparse |
| 28 |
fmt::fmt |
| 29 |
) |
| 30 |
|
| 31 |
if(MSVC) |
| 32 |
# Add precompiled header |
| 33 |
target_link_libraries(dolphin-tool PRIVATE use_pch) |
| 34 |
endif() |
| 35 |
|
| 36 |
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool) |
| 37 |
install(TARGETS dolphin-tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |