set(DEVLIB devLib) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) add_library(${DEVLIB}Obj OBJECT ds1302.c maxdetect.c piNes.c gertboard.c piFace.c lcd128x64.c lcd.c scrollPhat.c piGlow.c) add_library(${DEVLIB} STATIC $) add_library(${DEVLIB}shared SHARED $) set_target_properties(${DEVLIB}shared PROPERTIES OUTPUT_NAME ${DEVLIB}) install(TARGETS ${DEVLIB} ${DEVLIB}shared RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)