Commit ba931c1b by Baruch Sterin

CMakeLists.txt: add a new target libabc-pic, a library compiled with -fPIC, not complied by default

parent 5761c768
......@@ -56,3 +56,10 @@ endfunction()
add_executable(abc ${ABC_SRC})
abc_properties(abc PRIVATE)
list(REMOVE_ITEM ABC_SRC src/base/main/main.c)
add_library(libabc-pic EXCLUDE_FROM_ALL ${ABC_SRC})
abc_properties(libabc-pic PUBLIC)
set_property(TARGET libabc-pic PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET libabc-pic PROPERTY OUTPUT_NAME abc-pic)
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