27102bfec4
if it's not installed on the system. Code copied from clew.h/clew.c in CLCC: http://clcc.sourceforge.net/
56 lines
789 B
CMake
56 lines
789 B
CMake
|
|
include_directories(
|
|
.
|
|
${GLEW_INCLUDE_PATH}
|
|
${OPENGL_INCLUDE_DIR})
|
|
|
|
set(sources
|
|
util_cache.cpp
|
|
util_cuda.cpp
|
|
util_dynlib.cpp
|
|
util_md5.cpp
|
|
util_opencl.c
|
|
util_path.cpp
|
|
util_string.cpp
|
|
util_system.cpp
|
|
util_time.cpp
|
|
util_transform.cpp)
|
|
|
|
if(WITH_CYCLES_TEST)
|
|
list(APPEND sources util_view.cpp)
|
|
endif()
|
|
|
|
set(headers
|
|
util_algorithm.h
|
|
util_args.h
|
|
util_boundbox.h
|
|
util_cache.h
|
|
util_cuda.h
|
|
util_debug.h
|
|
util_dynlib.h
|
|
util_function.h
|
|
util_hash.h
|
|
util_image.h
|
|
util_list.h
|
|
util_map.h
|
|
util_math.h
|
|
util_md5.h
|
|
util_opencl.h
|
|
util_opengl.h
|
|
util_param.h
|
|
util_path.h
|
|
util_progress.h
|
|
util_set.h
|
|
util_string.h
|
|
util_system.h
|
|
util_thread.h
|
|
util_time.h
|
|
util_transform.h
|
|
util_types.h
|
|
util_view.h
|
|
util_vector.h
|
|
util_xml.h)
|
|
|
|
add_library(cycles_util ${sources} ${headers})
|
|
|