set(SRCS clrun/clrun.c clrun/dynamiclib.c clrun/gencl.c clrun/genclgl.c clrun/genclext.c clrun/genclglext.c ) add_library(clrun STATIC ${SRCS}) target_link_libraries(clrun ${CMAKE_DL_LIBS})