2010-06-10 18:43:12 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
../potrace
|
|
|
|
../polygon/kbool/include
|
|
|
|
)
|
|
|
|
|
|
|
|
set(BITMAP2COMPONENT_SRCS
|
|
|
|
bitmap2component.cpp
|
2010-06-15 18:27:41 +00:00
|
|
|
bitmap2cmp_gui_base
|
|
|
|
bitmap2cmp_gui
|
2010-06-10 18:43:12 +00:00
|
|
|
)
|
|
|
|
|
2010-06-20 14:47:30 +00:00
|
|
|
if(WIN32)
|
|
|
|
if(MINGW)
|
|
|
|
# BITMAP2COMPONENT_RESOURCES variable is set by the macro.
|
|
|
|
mingw_resource_compiler(bitmap2component)
|
|
|
|
else(MINGW)
|
|
|
|
set(BITMAP2COMPONENT_RESOURCES bitmap2component.rc)
|
|
|
|
endif(MINGW)
|
|
|
|
endif(WIN32)
|
2010-07-11 16:24:44 +00:00
|
|
|
|
2010-06-20 14:47:30 +00:00
|
|
|
add_executable(bitmap2component WIN32 MACOSX_BUNDLE
|
|
|
|
${BITMAP2COMPONENT_SRCS}
|
|
|
|
${BITMAP2COMPONENT_RESOURCES})
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
|
2010-06-15 18:27:41 +00:00
|
|
|
target_link_libraries( bitmap2component
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
potrace
|
|
|
|
kbool )
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
install(TARGETS bitmap2component
|
2010-07-11 16:24:44 +00:00
|
|
|
DESTINATION ${KICAD_BIN}
|
2010-06-10 18:43:12 +00:00
|
|
|
COMPONENT binary)
|
|
|
|
|