Clean some CMakeLists.txt files.
This commit is contained in:
parent
59b440fe7b
commit
7fc9e5f177
|
@ -189,45 +189,43 @@ install(FILES freeroute.jnlp
|
|||
# Install scripts
|
||||
###
|
||||
if(UNIX)
|
||||
install(DIRECTORY scripts
|
||||
DESTINATION ${KICAD_DOCS}
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
install(DIRECTORY scripts
|
||||
DESTINATION ${KICAD_DOCS}
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
endif(UNIX)
|
||||
###
|
||||
# FreeDesktop .desktop and MIME resources
|
||||
###
|
||||
if(UNIX)
|
||||
# Set paths
|
||||
set(UNIX_MIME_DIR resources/linux/mime)
|
||||
set(UNIX_MIMELNK_FILES ${UNIX_MIME_DIR}/mimelnk)
|
||||
set(UNIX_MIME_FILES ${UNIX_MIME_DIR}/mime)
|
||||
set(UNIX_ICONS_FILES ${UNIX_MIME_DIR}/icons)
|
||||
set(UNIX_APPLICATIONS_FILES ${UNIX_MIME_DIR}/applications)
|
||||
|
||||
# Set paths
|
||||
set(UNIX_MIME_DIR resources/linux/mime)
|
||||
set(UNIX_MIMELNK_FILES ${UNIX_MIME_DIR}/mimelnk)
|
||||
set(UNIX_MIME_FILES ${UNIX_MIME_DIR}/mime)
|
||||
set(UNIX_ICONS_FILES ${UNIX_MIME_DIR}/icons)
|
||||
set(UNIX_APPLICATIONS_FILES ${UNIX_MIME_DIR}/applications)
|
||||
# Install Mimelnk directory
|
||||
install(DIRECTORY ${UNIX_MIMELNK_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
|
||||
# Install Mimelnk directory
|
||||
install(DIRECTORY ${UNIX_MIMELNK_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
# Install Mime directory
|
||||
install(DIRECTORY ${UNIX_ICONS_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
|
||||
# Install Mime directory
|
||||
install(DIRECTORY ${UNIX_ICONS_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
|
||||
# Install Icons
|
||||
install(DIRECTORY ${UNIX_MIME_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
|
||||
# Install Applications directory (.desktop files)
|
||||
install(DIRECTORY ${UNIX_APPLICATIONS_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
# Install Icons
|
||||
install(DIRECTORY ${UNIX_MIME_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
|
||||
# Install Applications directory (.desktop files)
|
||||
install(DIRECTORY ${UNIX_APPLICATIONS_FILES}
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
|
||||
COMPONENT resources
|
||||
PATTERN ".svn" EXCLUDE)
|
||||
endif(UNIX)
|
||||
|
|
|
@ -16,8 +16,8 @@ set(COMMON_SRCS
|
|||
common_plot_functions.cpp
|
||||
common_plotHPGL_functions.cpp
|
||||
common_plotPS_functions.cpp
|
||||
common_plotGERBER_functions.cpp
|
||||
confirm.cpp
|
||||
common_plotGERBER_functions.cpp
|
||||
confirm.cpp
|
||||
copy_to_clipboard.cpp
|
||||
dcsvg.cpp
|
||||
displlst.cpp
|
||||
|
|
|
@ -36,9 +36,9 @@ set(EESCHEMA_SRCS
|
|||
delete.cpp
|
||||
delsheet.cpp
|
||||
# dialog_backanno.cpp
|
||||
dialog_bodygraphictext_properties_base.cpp
|
||||
dialog_bodygraphictext_properties_base.cpp
|
||||
dialog_build_BOM.cpp
|
||||
dialog_build_BOM_base.cpp
|
||||
dialog_build_BOM_base.cpp
|
||||
# dialog_cmp_graphic_properties.cpp
|
||||
dialog_create_component.cpp
|
||||
# dialog_edit_component_in_lib.cpp
|
||||
|
@ -53,7 +53,7 @@ set(EESCHEMA_SRCS
|
|||
dialog_erc.cpp
|
||||
# dialog_find.cpp
|
||||
dialog_options.cpp
|
||||
dialog_print_using_printer_base.cpp
|
||||
dialog_print_using_printer_base.cpp
|
||||
dialog_print_using_printer.cpp
|
||||
dialog_SVG_print.cpp
|
||||
dialog_SVG_print_base.cpp
|
||||
|
|
|
@ -34,22 +34,22 @@ set(PCBNEW_SRCS
|
|||
dialog_copper_zones_base.cpp
|
||||
dialog_display_options.cpp
|
||||
dialog_display_options_base.cpp
|
||||
dialog_drc_base.cpp
|
||||
dialog_drc_base.cpp
|
||||
dialog_drc.cpp
|
||||
dialog_edit_module_text.cpp
|
||||
dialog_edit_module_text_base.cpp
|
||||
dialog_edit_module_text_base.cpp
|
||||
dialog_edit_module.cpp
|
||||
dialog_exchange_modules_base.cpp
|
||||
dialog_freeroute_exchange.cpp
|
||||
# dialog_gendrill.cpp
|
||||
dialog_general_options.cpp
|
||||
dialog_general_options_BoardEditor_base.cpp
|
||||
dialog_general_options_BoardEditor_base.cpp
|
||||
# dialog_graphic_items_options.cpp
|
||||
dialog_graphic_item_properties.cpp
|
||||
dialog_graphic_item_properties_base.cpp
|
||||
dialog_graphic_item_properties.cpp
|
||||
dialog_graphic_item_properties_base.cpp
|
||||
# dialog_initpcb.cpp
|
||||
dialog_netlist.cpp
|
||||
dialog_netlist_fbp.cpp
|
||||
dialog_netlist_fbp.cpp
|
||||
dialog_pcb_text_properties.cpp
|
||||
zones_non_copper_type_functions.cpp
|
||||
dialog_non_copper_zones_properties_base.cpp
|
||||
|
@ -74,7 +74,7 @@ set(PCBNEW_SRCS
|
|||
editmod.cpp
|
||||
editrack.cpp
|
||||
editrack-part2.cpp
|
||||
edit_pcb_text.cpp
|
||||
edit_pcb_text.cpp
|
||||
edit_track_width.cpp
|
||||
edtxtmod.cpp
|
||||
export_gencad.cpp
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
IF(WIN32)
|
||||
ADD_DEFINITIONS( -D_MSWVC_ )
|
||||
ELSE(WIN32)
|
||||
ADD_DEFINITIONS( -D__UNIX__ )
|
||||
ENDIF(WIN32)
|
||||
if(WIN32)
|
||||
add_definitions(-D_MSWVC_)
|
||||
else(WIN32)
|
||||
add_definitions(-D__UNIX__)
|
||||
endif(WIN32)
|
||||
|
||||
|
||||
include_directories(../include)
|
||||
|
|
Loading…
Reference in New Issue