Share

Macros for Commonly-Used Libraries

For convenience, the global devkit cmake file contains macros for adding commonly-used packages. The macros are of the form find_<package_name> and are called by putting each macro for each package on its own line in the CMakeLists.txt file.

Macros are available for the following packages:

  • Alembic (find_alembic)
  • Arnold (find_arnold)
  • boost (find_boost)
  • cg and CgGL (find_cg)
  • DirectX (find_directx)
  • D3DX11Effects (find_D3DX11Effects)
  • LibXML2 (find_libxml2)
  • OpenGL (find_opengl)
  • TBB (find_tbb)
Note:

Unlike the other macros, find_directx takes arguments. You must pass the specific DirectX libraries you want to add to your project.

For example:

set(libs d3d9 d3dx9 dxguid)
find_directX("${libs}")

Was this information helpful?