Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 1.095 kb
function(tarantool_module mod)
set (module_sources ${ARGV})
list(REMOVE_ITEM module_sources ${mod})
set_source_files_properties(
${CMAKE_SOURCE_DIR}/cfg/tarantool_${mod}_cfg.c
PROPERTIES COMPILE_FLAGS "-Wno-unused" GENERATED True)
add_executable(tarantool_${mod}
${module_sources}
${CMAKE_SOURCE_DIR}/cfg/tarantool_${mod}_cfg.c)
add_library(lt${mod} STATIC ${recompiled_sources})
set_target_properties(lt${mod} PROPERTIES COMPILE_FLAGS
"${core_cflags} ${GCOV_C_FLAGS} -DTARANTOOL_CONFIG='<cfg/tarantool_${mod}_cfg.h>'")
add_dependencies(lt${mod} generate_headers generate_admin_m)
target_link_libraries(tarantool_${mod} lt${mod} ${GCOV_LDFLAGS} ${common_libraries})
set_target_properties(tarantool_${mod} PROPERTIES COMPILE_FLAGS
"${core_cflags} ${GCOV_C_FLAGS}")
if (ENABLE_STATIC)
set_target_properties(tarantool_${mod} PROPERTIES
LINK_SEARCH_END_STATIC ON)
endif()
install (TARGETS tarantool_${mod} DESTINATION bin)
endfunction()
foreach (module ${TARANTOOL_MODULES})
add_subdirectory(${module})
endforeach()
Jump to Line
Something went wrong with that request. Please try again.