CMakeLists.txt 584 B

123456789101112131415161718192021
  1. project(dmmlib-examples C)
  2. include_directories(
  3. ${DMMLIB_PUBLIC_INCLUDE_DIRS}
  4. )
  5. set(CMAKE_BUILD_TYPE Debug)
  6. if (HAVE_LOCKS)
  7. add_executable(larson larson.c)
  8. target_link_libraries(larson ${CMAKE_THREAD_LIBS_INIT} ${DMMLIB_SHARED_LIBRARY})
  9. endif (HAVE_LOCKS)
  10. if (NO_SYSTEM_CALLS)
  11. add_executable(test_for_memory_space_aware test_for_memory_space_aware.c)
  12. target_link_libraries(test_for_memory_space_aware ${DMMLIB_STATIC_LIBRARY})
  13. else (WITH_MEMORY_SPACE_AWARENESS)
  14. add_executable(test test.c)
  15. target_link_libraries(test ${DMMLIB_SHARED_LIBRARY})
  16. endif (NO_SYSTEM_CALLS)