project(dmmlib-examples C) include_directories( ${DMMLIB_PUBLIC_INCLUDE_DIRS} ) set(CMAKE_BUILD_TYPE Debug) if (HAVE_LOCKS) add_executable(larson larson.c) target_link_libraries(larson ${CMAKE_THREAD_LIBS_INIT} ${DMMLIB_SHARED_LIBRARY}) endif (HAVE_LOCKS) if (NO_SYSTEM_CALLS) add_executable(test_for_memory_space_aware test_for_memory_space_aware.c) target_link_libraries(test_for_memory_space_aware ${DMMLIB_STATIC_LIBRARY}) else (WITH_MEMORY_SPACE_AWARENESS) add_executable(test test.c) target_link_libraries(test ${DMMLIB_SHARED_LIBRARY}) endif (NO_SYSTEM_CALLS)