summaryrefslogblamecommitdiffstats
path: root/src/customdhcpcd/CMakeLists.txt
blob: 48faedab865da8b7e740c75ffe402885cd4ebe82 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                           

                                           
                                                                                
                                      
 
                                                     
                                

                                                           


                                                     
file(GLOB_RECURSE CUSTOMDHCPCD_SOURCES *.c)
file(GLOB_RECURSE CUSTOMDHCPCD_HEADERS *.h)

add_library(customdhcpcd SHARED ${CUSTOMDHCPCD_SOURCES} ${CUSTOMDHCPCD_HEADERS})
target_link_libraries(customdhcpcd rt)

#add_executable(customdhcpcd ${CUSTOMDHCPCD_SOURCES})
add_executable(cdhcpcd dhcpcd.c)
set_target_properties(cdhcpcd PROPERTIES LINKER_LANGUAGE C)
target_link_libraries(cdhcpcd customdhcpcd)

install(TARGETS cdhcpcd RUNTIME DESTINATION bin)
install(TARGETS customdhcpcd LIBRARY DESTINATION lib)