Update to cleaned up commons API
[oonf.git] / src / CMake.link_dynamic
1 # link plugin loader
2 TARGET_LINK_LIBRARIES(${OONF_EXE} static_pluginloader)
3
4 # link static plugins
5 FOREACH(plugin ${OONF_STATIC_PLUGINS})
6     TARGET_LINK_LIBRARIES(${OONF_EXE} static_${plugin})
7 ENDFOREACH(plugin)
8
9 # link core
10 TARGET_LINK_LIBRARIES(${OONF_EXE} ${OONF_LIBPREFIX}_core)
11
12 # link config and common API
13 TARGET_LINK_LIBRARIES(${OONF_EXE} ${OONF_LIBPREFIX}_config)
14 TARGET_LINK_LIBRARIES(${OONF_EXE} ${OONF_LIBPREFIX}_common)
15
16 # link builddata
17 TARGET_LINK_LIBRARIES(${OONF_EXE} static_builddata)
18
19 # link dlopen() library
20 TARGET_LINK_LIBRARIES(${OONF_EXE} ${CMAKE_DL_LIBS})
21
22 # link extra win32 libs
23 IF(WIN32)
24     TARGET_LINK_LIBRARIES(${OONF_EXE} ${OONF_LIBPREFIX}_regex)
25
26     SET_TARGET_PROPERTIES(${OONF_EXE} PROPERTIES ENABLE_EXPORTS true)
27     TARGET_LINK_LIBRARIES(${OONF_EXE} ws2_32 iphlpapi)
28 ENDIF(WIN32)