X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=89a181f59a94383f930c06ee6e9736af3113bfdd;hb=f7b281af2b449de0c9cddde6d455b17905631a75;hp=0e05f850273380e06acaec519a89f0ce62aafc85;hpb=59cd34b59853f6a47e756d7ab5bc0329f40a471c;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0e05f850..89a181f5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,11 +20,6 @@ if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) message(FATAL_ERROR "Require at least gcc-4.9") endif(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) -INCLUDE(FindPkgConfig) - -ADD_SUBDIRECTORY(genskel) -ADD_SUBDIRECTORY(tests) - ADD_DEFINITIONS(-DBINDING_INSTALL_DIR="${binding_install_dir}") # Always add INFER_EXTENSION (more details in afb-hreq.c) ADD_DEFINITIONS(-DINFER_EXTENSION) @@ -36,6 +31,7 @@ ADD_LIBRARY(afb-lib STATIC afb-api-so.c afb-api-so-v1.c afb-api-so-v2.c + afb-api-so-vdyn.c afb-api-ws.c afb-apiset.c afb-auth.c @@ -56,6 +52,7 @@ ADD_LIBRARY(afb-lib STATIC afb-proto-ws.c afb-session.c afb-stub-ws.c + afb-supervision.c afb-trace.c afb-websock.c afb-ws-client.c @@ -85,22 +82,34 @@ TARGET_LINK_LIBRARIES(afb-daemon INSTALL(TARGETS afb-daemon RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +########################################### +# build and install afb-daemon +########################################### +ADD_EXECUTABLE(afs-supervisor afs-supervisor.c afs-discover.c) +TARGET_LINK_LIBRARIES(afs-supervisor + afb-lib + ${link_libraries} +) +INSTALL(TARGETS afs-supervisor + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + ########################################### # build and install libafbwsc ########################################### -ADD_LIBRARY(afbwsc SHARED afb-ws.c afb-ws-client.c afb-wsj1.c websock.c) +ADD_LIBRARY(afbwsc SHARED afb-ws.c afb-ws-client.c afb-wsj1.c websock.c afb-proto-ws.c jobs-fake.c) SET_TARGET_PROPERTIES(afbwsc PROPERTIES VERSION ${LIBAFBWSC_VERSION} SOVERSION ${LIBAFBWSC_SOVERSION}) TARGET_LINK_LIBRARIES(afbwsc ${libsystemd_LDFLAGS} ${json-c_LDFLAGS} + -lpthread -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export-afbwsc.map -Wl,--as-needed -Wl,--gc-sections ) INSTALL(TARGETS afbwsc LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -INSTALL(FILES afb-wsj1.h afb-ws-client.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/afb) +INSTALL(FILES afb-wsj1.h afb-ws-client.h afb-proto-ws.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/afb) ########################################### # build and install afb-client-demo @@ -114,4 +123,3 @@ TARGET_LINK_LIBRARIES(afb-client-demo INSTALL(TARGETS afb-client-demo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -