blob: cbc15fe85fc1c3ca6599d9a117d7929897eb1e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
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)
if (NOT WIN32)
install(TARGETS dolphin-tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
|