18 ../common/tts_config_mgr.c
19 ../common/tts_config_parser.c
23 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})
24 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/common)
25 INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include)
27 FOREACH(flag ${pkgs_CFLAGS})
28 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
31 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
32 SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE")
33 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fPIE")
34 SET(CMAKE_C_FLAGS_RELEASE "-O2 -fPIE")
35 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
38 ADD_LIBRARY("${PROJECT_NAME}_engine" SHARED ${SRCS})
39 TARGET_LINK_LIBRARIES("${PROJECT_NAME}_engine" -ldl ${pkgs_LDFLAGS})
42 INSTALL(TARGETS "${PROJECT_NAME}_engine" DESTINATION ${LIBDIR} COMPONENT RuntimeLibraries)