CMakeLists.txt 640 B

12345678910111213141516171819202122232425262728293031
  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. set_target_properties(dolphin-tool PROPERTIES OUTPUT_NAME dolphin-tool)
  14. target_link_libraries(dolphin-tool
  15. PRIVATE
  16. discio
  17. uicommon
  18. cpp-optparse
  19. fmt::fmt
  20. )
  21. if(MSVC)
  22. # Add precompiled header
  23. target_link_libraries(dolphin-tool PRIVATE use_pch)
  24. endif()
  25. set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool)
  26. install(TARGETS dolphin-tool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})