Skip to content

CMake modules for common applications related to computer graphics

License

Notifications You must be signed in to change notification settings

MikhailPasechnik/cgcmake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

cgcmake

CMake modules for common applications related to computer graphics

Maya CMakeLists.txt

cmake_minimum_required(VERSION 2.6)
project(sampleplugin)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/modules)

set(SOURCE_FILES "pluginMain.cpp"
    "sampleCmd.cpp" "sampleCmd.h"
)

find_package(Maya REQUIRED)

include_directories(${MAYA_INCLUDE_DIR})
link_directories(${MAYA_LIBRARY_DIR})
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} ${MAYA_LIBRARIES})

MAYA_PLUGIN(${PROJECT_NAME})

From Command Line

# CMake 2.8.x
cmake -G "Visual Studio 11 Win64" -DMAYA_VERSION=2015 ../
cmake --build . --config Release

About

CMake modules for common applications related to computer graphics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 100.0%