4 ../common/vc_config_mgr.c
5 ../common/vc_config_parser.c
6 ../common/vc_info_parser.c
7 ../common/vc_json_parser.c
18 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/common)
19 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include)
21 FOREACH(flag ${pkgs_CFLAGS})
22 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
25 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
26 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fPIE")
27 SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIE")
28 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
31 ADD_EXECUTABLE("${PROJECT_NAME}-daemon" ${SRCS})
32 TARGET_LINK_LIBRARIES("${PROJECT_NAME}-daemon" -ldl -lm ${pkgs_LDFLAGS})
35 INSTALL(TARGETS "${PROJECT_NAME}-daemon" DESTINATION bin)