kicad CMakeList.txt library dependency order

This commit is contained in:
Dick Hollenbeck 2012-01-27 09:40:04 -06:00
parent fb7b03a650
commit 499fc46eb1
2 changed files with 26 additions and 9 deletions

View File

@ -40,16 +40,29 @@ if(APPLE)
endif(APPLE)
add_executable(kicad WIN32 MACOSX_BUNDLE
${KICAD_SRCS}
${KICAD_EXTRA_SRCS}
${KICAD_RESOURCES}
)
${KICAD_SRCS}
${KICAD_EXTRA_SRCS}
${KICAD_RESOURCES}
)
if(APPLE)
set_target_properties(kicad PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
target_link_libraries(kicad common bitmaps kbool polygon ${wxWidgets_LIBRARIES})
target_link_libraries(kicad
common
bitmaps
polygon
kbool
${wxWidgets_LIBRARIES}
)
else(APPLE)
target_link_libraries(kicad common bitmaps kbool polygon ${wxWidgets_LIBRARIES} ${GDI_PLUS_LIBRARIES})
target_link_libraries(kicad
common
bitmaps
polygon
kbool
${wxWidgets_LIBRARIES}
${GDI_PLUS_LIBRARIES}
)
endif(APPLE)
install(TARGETS kicad

View File

@ -57,8 +57,9 @@ endif(APPLE)
add_executable(pcb_calculator WIN32 MACOSX_BUNDLE
${PCB_CALCULATOR_SRCS}
${PCB_CALCULATOR_RESOURCES})
${PCB_CALCULATOR_SRCS}
${PCB_CALCULATOR_RESOURCES}
)
if(APPLE)
@ -67,7 +68,10 @@ if(APPLE)
endif(APPLE)
target_link_libraries( pcb_calculator
common polygon bitmaps kbool
common
bitmaps
polygon
kbool
${wxWidgets_LIBRARIES}
)