You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
566 B
23 lines
566 B
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 $<TARGET_OBJECTS:${DEVLIB}Obj>) |
|
add_library(${DEVLIB}shared SHARED $<TARGET_OBJECTS:${DEVLIB}Obj>) |
|
set_target_properties(${DEVLIB}shared PROPERTIES OUTPUT_NAME ${DEVLIB}) |
|
|
|
install(TARGETS ${DEVLIB} ${DEVLIB}shared |
|
RUNTIME DESTINATION bin |
|
LIBRARY DESTINATION lib |
|
ARCHIVE DESTINATION lib) |