diff --git a/CMakeLists.txt b/CMakeLists.txt index 79e0583..f58bffd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,12 +4,11 @@ project(AtomsGaffer) option( USE_GAFFER_DEPENDENCIES "Turn this off you're building against your own dependencies (eg boost, python, tbb, exr, cortex) rather than the versions included with Gaffer" ON ) option( USE_ATOMS_PROCEDURAL "Turn this off you plan to load AtomsGaffer in maya or another environment that requires a full atoms license" ON ) -set(CMAKE_CXX_STANDARD 11) -set(CMAKE_VERBOSE_MAKEFILE OFF) +set(CMAKE_VERBOSE_MAKEFILE ON) if(ATOMS_MAYA_ROOT) set(ATOMS_INCLUDE_PATH ${ATOMS_MAYA_ROOT}/include) - set(ATOMS_LIB_PATH ${ATOMS_MAYA_ROOT}/lib/2018) + set(ATOMS_LIB_PATH ${ATOMS_MAYA_ROOT}/lib/${MAYA_MAJOR_VERSION}) set(ATOMS_ICONS_PATH ${ATOMS_MAYA_ROOT}/icons) endif() @@ -42,7 +41,8 @@ file( GLOB AtomsGafferSrc src/AtomsGaffer/*.cpp ) link_directories( AtomsGaffer ${GAFFER_ROOT}/lib ${ATOMS_LIB_PATH} ) add_library( AtomsGaffer SHARED ${AtomsGafferSrc} ) target_compile_definitions( AtomsGaffer PRIVATE BOOST_SIGNALS_NO_DEPRECATION_WARNING=1 LINUX=1 ) -target_include_directories( AtomsGaffer PRIVATE include ${DEPENDENCY_INCLUDE_PATHS} ) +target_include_directories( AtomsGaffer SYSTEM PRIVATE ${DEPENDENCY_INCLUDE_PATHS} ) +target_include_directories( AtomsGaffer PRIVATE include ) if(USE_ATOMS_PROCEDURAL) target_link_libraries( AtomsGaffer Gaffer GafferScene AtomsProcedural ) else() @@ -56,7 +56,8 @@ add_library( AtomsGafferModule SHARED ${AtomsGafferModuleSrc} ) set_target_properties( AtomsGafferModule PROPERTIES PREFIX "" OUTPUT_NAME "_AtomsGaffer" ) target_compile_definitions( AtomsGafferModule PRIVATE BOOST_SIGNALS_NO_DEPRECATION_WARNING=1 LINUX=1 ) target_link_libraries( AtomsGafferModule AtomsGaffer ) -target_include_directories( AtomsGafferModule PRIVATE include ${DEPENDENCY_INCLUDE_PATHS} ${PYTHON_ROOT}/include/python2.7 ) +target_include_directories( AtomsGafferModule SYSTEM PRIVATE ${DEPENDENCY_INCLUDE_PATHS} ${PYTHON_ROOT}/include/python2.7 ) +target_include_directories( AtomsGafferModule PRIVATE include ) target_link_libraries( AtomsGafferModule GafferBindings ) install( TARGETS AtomsGafferModule DESTINATION python/AtomsGaffer ) diff --git a/README.md b/README.md index 4aafb9b..027de56 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ The Tool Chefs have open-sourced their [Atoms Crowd](https://atoms.toolchefs.com * cmake * Gaffer Install +* Atoms Install **In a terminal:** @@ -21,8 +22,8 @@ setenv ATOMS_ROOT setenv ATOMSGAFFER_INSTALL_PREFIX cd atomsGaffer -cmake -DGAFFER_ROOT=$GAFFER_ROOT -D$ATOMS_ROOT -DCMAKE_INSTALL_PREFIX=$ATOMSGAFFER_INSTALL_PREFIX . -make install -j +cmake -DGAFFER_ROOT=$GAFFER_ROOT -DATOMS_ROOT=$ATOMS_ROOT -DCMAKE_CXX_FLAGS='-std=c++11' -DCMAKE_INSTALL_PREFIX=$ATOMSGAFFER_INSTALL_PREFIX . +make install -j ) ``` ### Runtime Instructions