You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4 KiB

  1. include_directories(${CMAKE_CURRENT_SOURCE_DIR}
  2. ../potrace
  3. ../polygon/kbool/include
  4. )
  5. set(BITMAP2COMPONENT_SRCS
  6. bitmap2component.cpp
  7. bitmap2cmp_gui_base
  8. bitmap2cmp_gui
  9. )
  10. if(WIN32)
  11. if(MINGW)
  12. # BITMAP2COMPONENT_RESOURCES variable is set by the macro.
  13. mingw_resource_compiler(bitmap2component)
  14. else(MINGW)
  15. set(BITMAP2COMPONENT_RESOURCES bitmap2component.rc)
  16. endif(MINGW)
  17. endif(WIN32)
  18. if(APPLE)
  19. set(BITMAP2COMPONENT_RESOURCES bitmap2component.icns)
  20. set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/bitmap2component.icns"
  21. PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
  22. set(MACOSX_BUNDLE_ICON_FILE bitmap2component.icns)
  23. set(MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.bitmap2component)
  24. endif(APPLE)
  25. add_executable(bitmap2component WIN32 MACOSX_BUNDLE
  26. ${BITMAP2COMPONENT_SRCS}
  27. ${BITMAP2COMPONENT_RESOURCES})
  28. if(APPLE)
  29. set_target_properties(bitmap2component PROPERTIES MACOSX_BUNDLE_INFO_PLIST
  30. ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
  31. endif(APPLE)
  32. target_link_libraries( bitmap2component
  33. ${wxWidgets_LIBRARIES}
  34. potrace
  35. kbool )
  36. install(TARGETS bitmap2component
  37. DESTINATION ${KICAD_BIN}
  38. COMPONENT binary)