shm implemented as memfd syscall
编辑 | blame | 历史 | 原始文档
cmake_minimum_required(VERSION 3.9)
file(GLOB SOURCES *.c)

include_directories(../include)

# add binary
add_executable(sample_create sample_create.c)
add_executable(sample_open sample_open.c)
add_executable(test_list_in_shm test_list_in_shm.c)
add_executable(shmht_mytests shmht_mytests.c)
add_executable(ipc_server ipc_server.c)
add_executable(ipc_client ipc_client.c)

target_link_libraries(sample_create
	              PRIVATE 
	              memfd
		     )
target_link_libraries(sample_open
	              PRIVATE 
	              memfd
		     )

target_link_libraries(test_list_in_shm
	              PRIVATE 
	              memfd
		      pthread
		     )

target_link_libraries(shmht_mytests
	              PRIVATE 
	              memfd
		      pthread
		     )
target_link_libraries(ipc_server
	              PRIVATE 
	              memfd
		      pthread
                      libipc_server
		     )
target_link_libraries(ipc_client
	              PRIVATE 
	              memfd
		      pthread
		      libipc_client
		     )