kicad/kicad/CMakeLists.txt

72 lines
1.8 KiB
CMake
Raw Normal View History

2008-03-11 15:57:54 +00:00
add_definitions(-DKICAD)
include_directories(BEFORE ${INC_BEFORE})
include_directories(
${Boost_INCLUDE_DIR}
${INC_AFTER}
)
2008-03-11 15:57:54 +00:00
set(KICAD_SRCS
class_treeprojectfiles.cpp
class_treeproject_item.cpp
commandframe.cpp
dialogs/dialog_template_selector_base.cpp
dialogs/dialog_template_selector.cpp
files-io.cpp
kicad.cpp
mainframe.cpp
2010-02-14 14:59:43 +00:00
menubar.cpp
preferences.cpp
prjconfig.cpp
project_template.cpp
tree_project_frame.cpp)
2008-03-11 15:57:54 +00:00
if(WIN32)
if(MINGW)
# KICAD_RESOURCES variable is set by the macro.
mingw_resource_compiler(kicad)
2008-03-11 15:57:54 +00:00
else(MINGW)
set(KICAD_RESOURCES kicad.rc)
endif(MINGW)
endif(WIN32)
2008-03-11 15:57:54 +00:00
if(APPLE)
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"
PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
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)
2010-05-16 18:18:38 +00:00
add_executable(kicad WIN32 MACOSX_BUNDLE
${KICAD_SRCS}
${KICAD_EXTRA_SRCS}
${KICAD_RESOURCES}
)
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)
target_link_libraries(kicad
common
bitmaps
polygon
${wxWidgets_LIBRARIES}
)
else(APPLE)
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
DESTINATION ${KICAD_BIN}
COMPONENT binary)