CMakeLists.txt 609 B

12345678910111213141516171819202122
  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. find_package (Threads)
  8. add_executable(larson larson.c)
  9. target_link_libraries(larson ${CMAKE_THREAD_LIBS_INIT} ${DMMLIB_SHARED_LIBRARY})
  10. endif (HAVE_LOCKS)
  11. if (NO_SYSTEM_CALLS)
  12. add_executable(test_for_memory_space_aware test_for_memory_space_aware.c)
  13. target_link_libraries(test_for_memory_space_aware ${DMMLIB_STATIC_LIBRARY})
  14. else (WITH_MEMORY_SPACE_AWARENESS)
  15. add_executable(test test.c)
  16. target_link_libraries(test ${DMMLIB_SHARED_LIBRARY})
  17. endif (NO_SYSTEM_CALLS)