1234567891011121314151617181920212223 |
- project(dmmlib-examples C)
- include_directories(
- ${DMMLIB_PUBLIC_INCLUDE_DIRS}
- )
- set(CMAKE_BUILD_TYPE RelWithDebInfo)
- if (HAVE_LOCKS)
- find_package (Threads)
- add_executable(larson larson.c)
- target_link_libraries(larson ${DMMLIB_SHARED_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
- endif (HAVE_LOCKS)
- if (WITH_MEMORY_SPACE_AWARENESS)
- 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 (WITH_MEMORY_SPACE_AWARENESS)
|