"Fossies" - the Fresh Open Source Software Archive

Member "aqsis-1.8.2/libs/core/CMakeLists.txt" (24 Aug 2012, 2310 Bytes) of package /linux/privat/aqsis-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 project(core)
    2 
    3 # Check for boost thread.
    4 if(NOT Boost_THREAD_FOUND)
    5 	message(FATAL_ERROR "Aqsis core requires boost thread to build")
    6 endif()
    7 
    8 # Generate extra files here.  Extra stuff in this directory is...
    9 add_subproject(api)
   10 add_subproject(ddmanager)
   11 add_subproject(geometry)
   12 add_subproject(raytrace)
   13 add_subproject(texturing_old)
   14 
   15 set(core_srcs
   16 	attributes.cpp
   17 	bound.cpp
   18 	bucket.cpp
   19 	bucketprocessor.cpp
   20 	csgtree.cpp
   21 	filters.cpp
   22 	grid.cpp
   23 	imagebuffer.cpp
   24 	imagepixel.cpp
   25 	imagers.cpp
   26 	lights.cpp
   27 	micropolygon.cpp
   28 	mpdump.cpp
   29 	multijitter.cpp
   30 	refcount.cpp
   31 	occlusion.cpp
   32 	optioncache.cpp
   33 	options.cpp
   34 	parameters.cpp
   35 	renderer.cpp
   36 	shaders.cpp
   37 	stats.cpp
   38 	threadscheduler.cpp
   39 	transform.cpp
   40 	${api_srcs}
   41 	${ddmanager_srcs}
   42 	${geometry_srcs}
   43 	${raytrace_srcs}
   44 	${texturing_old_srcs}
   45 )
   46 
   47 set(core_test_srcs
   48 	${api_test_srcs}
   49 	occlusion_test.cpp
   50 	bilinear_test.cpp
   51 )
   52 
   53 set(core_hdrs
   54 	attributes.h
   55 	bilinear.h
   56 	bound.h
   57 	bucket.h
   58 	bucketprocessor.h
   59 	channelbuffer.h
   60 	clippingvolume.h
   61 	csgtree.h
   62 	forwarddiff.h
   63 	grid.h
   64 	imagebuffer.h
   65 	imagepixel.h
   66 	imagers.h
   67 	isampler.h
   68 	lights.h
   69 	micropolygon.h
   70 	motion.h
   71 	mpdump.h
   72 	multijitter.h
   73 	occlusion.h
   74 	optioncache.h
   75 	options.h
   76 	parameters.h
   77 	plane.h
   78 	renderer.h
   79 	shaders.h
   80 	stats.h
   81 	threadscheduler.h
   82 	transform.h
   83 	${api_hdrs}
   84 	${ddmanager_hdrs}
   85 	${geometry_hdrs}
   86 	${raytrace_hdrs}
   87 	${texturing_old_hdrs}
   88 )
   89 
   90 source_group("Header Files" FILES ${core_hdrs})
   91 
   92 include_directories(
   93 	${PROJECT_SOURCE_DIR}  #< Needed so that files in subdirectories can find headers.
   94 	${AQSIS_TIFF_INCLUDE_DIR})
   95 
   96 # Create list of preprocessor definitions
   97 set(defs AQSIS_RI_EXPORTS AQSIS_CORE_EXPORTS
   98 	"AQSIS_MAIN_CONFIG_NAME=${AQSIS_MAIN_CONFIG_NAME}")
   99 if(AQSIS_ENABLE_MPDUMP)
  100 	list(APPEND defs ENABLE_MPDUMP)
  101 endif()
  102 if(AQSIS_USE_TIMERS)
  103 	list(APPEND defs USE_TIMERS)
  104 endif()
  105 if(AQSIS_ENABLE_THREADING)
  106 	list(APPEND defs ENABLE_THREADING)
  107 endif()
  108 if(DEFAULT_RC_PATH)
  109 	list(APPEND defs "DEFAULT_RC_PATH=${DEFAULT_RC_PATH}")
  110 endif()
  111 
  112 
  113 # Add library & install
  114 aqsis_add_library(aqsis_core ${core_srcs} ${core_hdrs}
  115 	TEST_SOURCES ${core_test_srcs}
  116 	COMPILE_DEFINITIONS ${defs}
  117 	LINK_LIBRARIES aqsis_math aqsis_riutil aqsis_shadervm
  118 		aqsis_tex aqsis_util aqsis_riutil
  119 		${AQSIS_TIFF_LIBRARIES} ${Boost_THREAD_LIBRARY} ${CARBON_LIBRARY}
  120 	DEPENDS ri_inl
  121 )
  122 
  123 aqsis_install_targets(aqsis_core)
  124