2008-03-11 15:57:54 +00:00
|
|
|
add_definitions(-DKICAD)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
include_directories(BEFORE ${INC_BEFORE})
|
|
|
|
include_directories(
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
${INC_AFTER}
|
|
|
|
)
|
|
|
|
|
2008-10-30 20:12:29 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
set(KICAD_SRCS
|
2010-02-19 15:01:32 +00:00
|
|
|
class_treeprojectfiles.cpp
|
2010-02-20 13:20:55 +00:00
|
|
|
class_treeproject_item.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
commandframe.cpp
|
2012-10-14 16:57:11 +00:00
|
|
|
dialogs/dialog_template_selector_base.cpp
|
|
|
|
dialogs/dialog_template_selector.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
files-io.cpp
|
|
|
|
kicad.cpp
|
|
|
|
mainframe.cpp
|
2010-02-14 14:59:43 +00:00
|
|
|
menubar.cpp
|
2008-01-30 09:42:19 +00:00
|
|
|
preferences.cpp
|
|
|
|
prjconfig.cpp
|
2012-10-14 16:57:11 +00:00
|
|
|
project_template.cpp
|
2010-02-19 15:01:32 +00:00
|
|
|
tree_project_frame.cpp)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(WIN32)
|
|
|
|
if(MINGW)
|
2008-04-18 08:04:54 +00:00
|
|
|
# KICAD_RESOURCES variable is set by the macro.
|
2008-04-13 19:07:32 +00:00
|
|
|
mingw_resource_compiler(kicad)
|
2008-03-11 15:57:54 +00:00
|
|
|
else(MINGW)
|
|
|
|
set(KICAD_RESOURCES kicad.rc)
|
|
|
|
endif(MINGW)
|
|
|
|
endif(WIN32)
|
2008-09-07 19:32:07 +00:00
|
|
|
|
2008-03-11 15:57:54 +00:00
|
|
|
if(APPLE)
|
2009-04-29 12:10:15 +00:00
|
|
|
set(KICAD_RESOURCES kicad.icns kicad_doc.icns)
|
2008-06-15 16:31:32 +00:00
|
|
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/kicad.icns"
|
2008-09-07 19:32:07 +00:00
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
2009-04-29 12:10:15 +00:00
|
|
|
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/kicad_doc.icns"
|
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
2008-06-15 16:31:32 +00:00
|
|
|
set(MACOSX_BUNDLE_ICON_FILE kicad.icns)
|
|
|
|
set(MACOSX_BUNDLE_GUI_IDENTIFIER org.kicad-eda.kicad)
|
|
|
|
set(MACOSX_BUNDLE_NAME kicad)
|
2008-03-11 15:57:54 +00:00
|
|
|
endif(APPLE)
|
2007-11-08 07:17:37 +00:00
|
|
|
|
2010-05-16 18:18:38 +00:00
|
|
|
add_executable(kicad WIN32 MACOSX_BUNDLE
|
2012-01-27 15:40:04 +00:00
|
|
|
${KICAD_SRCS}
|
|
|
|
${KICAD_EXTRA_SRCS}
|
|
|
|
${KICAD_RESOURCES}
|
|
|
|
)
|
2009-04-29 12:10:15 +00:00
|
|
|
|
2010-01-16 22:32:26 +00:00
|
|
|
if(APPLE)
|
2010-05-16 18:18:38 +00:00
|
|
|
set_target_properties(kicad PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
2012-01-27 15:40:04 +00:00
|
|
|
target_link_libraries(kicad
|
|
|
|
common
|
|
|
|
bitmaps
|
|
|
|
polygon
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
)
|
2010-01-16 22:32:26 +00:00
|
|
|
else(APPLE)
|
2012-01-27 15:40:04 +00:00
|
|
|
target_link_libraries(kicad
|
|
|
|
common
|
|
|
|
bitmaps
|
|
|
|
polygon
|
|
|
|
${wxWidgets_LIBRARIES}
|
|
|
|
${GDI_PLUS_LIBRARIES}
|
|
|
|
)
|
2010-05-16 18:18:38 +00:00
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
install(TARGETS kicad
|
2010-01-16 22:32:26 +00:00
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary)
|