Commit 9f718d31 authored by Andreas Schmidt's avatar Andreas Schmidt

~= generate prrtUtil.a

parent b9a1c33f
Pipeline #3358 failed with stages
in 2 minutes and 25 seconds
......@@ -10,17 +10,19 @@ set (UTIL_SOURCES ../defines.h
windowedFilter.c windowedFilter.h)
add_library(prrtUtil_obj OBJECT ${UTIL_SOURCES})
set_property(TARGET prrtUtil_obj PROPERTY POSITION_INDEPENDENT_CODE 1)
set_property(TARGET prrtUtil_obj PROPERTY C_STANDARD 99)
add_library(prrtUtil_shared SHARED $<TARGET_OBJECTS:prrtUtil_obj>)
set_target_properties(prrtUtil_shared PROPERTIES OUTPUT_NAME "prrtUtil")
add_library(prrtUtil_static SHARED $<TARGET_OBJECTS:prrtUtil_obj>)
add_library(prrtUtil_static STATIC $<TARGET_OBJECTS:prrtUtil_obj>)
set_target_properties(prrtUtil_static PROPERTIES OUTPUT_NAME "prrtUtil")
target_link_libraries(prrtUtil_shared ${M_LIB})
target_link_libraries(prrtUtil_static ${M_LIB})
install(TARGETS prrtUtil_shared prrtUtil_static
install(TARGETS prrtUtil_static prrtUtil_shared
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment