Changed: Updated 3dsmax plugins CMake projects

This commit is contained in:
kervala 2010-09-01 13:54:42 +02:00
parent d389a4eaa6
commit 7fe2e6f0db
11 changed files with 59 additions and 125 deletions

View file

@ -3,8 +3,8 @@ FILE(GLOB SRC *.cpp *.h ../../ig_lighter_lib/*.cpp ../../ig_lighter_lib/*.h)
ADD_LIBRARY(ligoscape_utility SHARED ligoscape_utility.rc ${SRC} ligoscape_utility.def) ADD_LIBRARY(ligoscape_utility SHARED ligoscape_utility.rc ${SRC} ligoscape_utility.def)
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(ligoscape_utility TARGET_LINK_LIBRARIES(ligoscape_utility
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nelligo nelligo
nel3d nel3d
@ -15,14 +15,10 @@ TARGET_LINK_LIBRARIES(ligoscape_utility
nel_3dsmax_shared nel_3dsmax_shared
comctl32) comctl32)
SET_TARGET_PROPERTIES(ligoscape_utility PROPERTIES SET_TARGET_PROPERTIES(ligoscape_utility PROPERTIES SUFFIX ".dlx")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(ligoscape_utility "MAX Plugin: Ligoscape Utility")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_RUNTIME_FLAGS(ligoscape_utility)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_LIB_SUFFIX(ligoscape_utility)
SUFFIX ".dlx"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: Ligoscape Utility")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

View file

@ -2,9 +2,8 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(nel_3dsmax_shared SHARED ${SRC}) ADD_LIBRARY(nel_3dsmax_shared SHARED ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_3dsmax_shared TARGET_LINK_LIBRARIES(nel_3dsmax_shared
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -12,15 +11,12 @@ TARGET_LINK_LIBRARIES(nel_3dsmax_shared
${MAXSDK_LIBRARIES} ${MAXSDK_LIBRARIES}
Version.lib) Version.lib)
SET_TARGET_PROPERTIES(nel_3dsmax_shared PROPERTIES NL_DEFAULT_PROPS(nel_3dsmax_shared "MAX Plugin: NeL 3DSMAX Shared")
VERSION ${NL_VERSION} NL_ADD_RUNTIME_FLAGS(nel_3dsmax_shared)
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_LIB_SUFFIX(nel_3dsmax_shared)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" SET_TARGET_PROPERTIES(nel_export PROPERTIES SUFFIX ".dlx")
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL 3DSMAX Shared")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DNEL_3DSMAX_SHARED_EXPORTS) ADD_DEFINITIONS(-DNEL_3DSMAX_SHARED_EXPORTS)
IF(WITH_PCH) IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_3dsmax_shared ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.h ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.cpp) ADD_NATIVE_PRECOMPILED_HEADER(nel_3dsmax_shared ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.h ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.cpp)

View file

@ -7,8 +7,8 @@ LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/last_lightmap.cpp
ADD_LIBRARY(nel_export SHARED ${SRC} nel_export.rc) ADD_LIBRARY(nel_export SHARED ${SRC} nel_export.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_export TARGET_LINK_LIBRARIES(nel_export
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nelpacs nelpacs
nel3d nel3d
@ -20,14 +20,10 @@ TARGET_LINK_LIBRARIES(nel_export
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_export PROPERTIES NL_DEFAULT_PROPS(nel_export "MAX Plugin: NeL Export")
VERSION ${NL_VERSION} NL_ADD_RUNTIME_FLAGS(nel_export)
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_LIB_SUFFIX(nel_export)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" SET_TARGET_PROPERTIES(nel_export PROPERTIES SUFFIX ".dlu")
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlu"
PROJECT_LABEL "MAX Plugin: NeL Export")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

View file

@ -2,18 +2,11 @@ FILE(GLOB SRC *.cpp *.h)
ADD_LIBRARY(nel_mesh_lib STATIC ${SRC}) ADD_LIBRARY(nel_mesh_lib STATIC ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR} ${MAXSDK_CS_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR} ${MAXSDK_CS_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_mesh_lib ${LIBXML2_LIBRARIES} nelmisc) TARGET_LINK_LIBRARIES(nel_mesh_lib nelmisc)
SET_TARGET_PROPERTIES(nel_mesh_lib PROPERTIES NL_DEFAULT_PROPS(nel_mesh_lib "MAX Plugin: NeL Mesh Library")
VERSION ${NL_VERSION} NL_ADD_RUNTIME_FLAGS(nel_mesh_lib)
SOVERSION ${NL_VERSION_MAJOR} NL_ADD_LIB_SUFFIX(nel_mesh_lib)
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Mesh Library")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
IF(WITH_PCH) IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_mesh_lib ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.h ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.cpp) ADD_NATIVE_PRECOMPILED_HEADER(nel_mesh_lib ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.h ${CMAKE_CURRENT_SOURCE_DIR}/StdAfx.cpp)

View file

@ -2,9 +2,8 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(nel_patch_converter SHARED ${SRC} nel_patch_converter.rc) ADD_LIBRARY(nel_patch_converter SHARED ${SRC} nel_patch_converter.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_converter TARGET_LINK_LIBRARIES(nel_patch_converter
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -14,13 +13,9 @@ TARGET_LINK_LIBRARIES(nel_patch_converter
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_converter PROPERTIES SET_TARGET_PROPERTIES(nel_patch_converter PROPERTIES SUFFIX ".dlm")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(nel_patch_converter "MAX Plugin: NeL Patch Converter")
DEBUG_POSTFIX "_d" NL_ADD_RUNTIME_FLAGS(nel_patch_converter)
RELEASE_POSTFIX "_r" NL_ADD_LIB_SUFFIX(nel_patch_converter)
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Patch Converter")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS nel_patch_converter RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries) INSTALL(TARGETS nel_patch_converter RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)

View file

@ -2,9 +2,8 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(nel_patch_edit SHARED ${SRC} mods.rc) ADD_LIBRARY(nel_patch_edit SHARED ${SRC} mods.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_edit TARGET_LINK_LIBRARIES(nel_patch_edit
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -14,16 +13,10 @@ TARGET_LINK_LIBRARIES(nel_patch_edit
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_edit PROPERTIES SET_TARGET_PROPERTIES(nel_patch_edit PROPERTIES SUFFIX ".dlm")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(nel_patch_edit "MAX Plugin: NeL Patch Editor")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_RUNTIME_FLAGS(nel_patch_edit)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_LIB_SUFFIX(nel_patch_edit)
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Patch Editor")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
IF(WITH_PCH) IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_patch_edit ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.cpp) ADD_NATIVE_PRECOMPILED_HEADER(nel_patch_edit ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.h ${CMAKE_CURRENT_SOURCE_DIR}/stdafx.cpp)

View file

@ -2,9 +2,8 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(nel_patch_edit_adv SHARED ${SRC} mods.rc) ADD_LIBRARY(nel_patch_edit_adv SHARED ${SRC} mods.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_edit_adv TARGET_LINK_LIBRARIES(nel_patch_edit_adv
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -14,15 +13,9 @@ TARGET_LINK_LIBRARIES(nel_patch_edit_adv
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_edit_adv PROPERTIES SET_TARGET_PROPERTIES(nel_patch_edit_adv PROPERTIES SUFFIX ".dlm")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(nel_patch_edit_adv "MAX Plugin: NeL Patch Edit (Adv)")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_RUNTIME_FLAGS(nel_patch_edit_adv)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_LIB_SUFFIX(nel_patch_edit_adv)
SUFFIX ".dlm"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Patch Edit (Adv)")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS nel_patch_edit_adv RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries) INSTALL(TARGETS nel_patch_edit_adv RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)

View file

@ -2,21 +2,10 @@ FILE(GLOB SRC *.cpp *.h)
ADD_LIBRARY(nel_patch_lib STATIC ${SRC}) ADD_LIBRARY(nel_patch_lib STATIC ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_lib TARGET_LINK_LIBRARIES(nel_patch_lib nelmisc nel3d ${MAXSDK_LIBRARIES})
${LIBXML2_LIBRARIES} NL_DEFAULT_PROPS(nel_patch_lib "MAX Plugin: NeL Patch Library")
nelmisc NL_ADD_RUNTIME_FLAGS(nel_patch_lib)
nel3d NL_ADD_LIB_SUFFIX(nel_patch_lib)
${MAXSDK_LIBRARIES})
SET_TARGET_PROPERTIES(nel_patch_lib PROPERTIES
VERSION ${NL_VERSION}
SOVERSION ${NL_VERSION_MAJOR}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Patch Library")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS nel_patch_lib RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries) INSTALL(TARGETS nel_patch_lib RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)

View file

@ -5,8 +5,8 @@ LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/nel_paint.cpp)
ADD_LIBRARY(nel_patch_paint SHARED ${SRC} nel_patch_paint.rc) ADD_LIBRARY(nel_patch_paint SHARED ${SRC} nel_patch_paint.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_paint TARGET_LINK_LIBRARIES(nel_patch_paint
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nelligo nelligo
nel3d nel3d
@ -17,14 +17,10 @@ TARGET_LINK_LIBRARIES(nel_patch_paint
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_paint PROPERTIES SET_TARGET_PROPERTIES(nel_patch_paint PROPERTIES SUFFIX ".dlm")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_DEFAULT_PROPS(nel_patch_paint "MAX Plugin: NeL Patch Painter")
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_RUNTIME_FLAGS(nel_patch_paint)
VERSION ${NL_VERSION} NL_ADD_LIB_SUFFIX(nel_patch_paint)
SUFFIX ".dlm"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Patch Painter")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS}) ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

View file

@ -2,9 +2,9 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(nel_vertex_tree_paint SHARED ${SRC} vertex_tree_paint.def vertex_tree_paint.rc) ADD_LIBRARY(nel_vertex_tree_paint SHARED ${SRC} vertex_tree_paint.def vertex_tree_paint.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_vertex_tree_paint TARGET_LINK_LIBRARIES(nel_vertex_tree_paint
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -14,15 +14,9 @@ TARGET_LINK_LIBRARIES(nel_vertex_tree_paint
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(nel_vertex_tree_paint PROPERTIES SET_TARGET_PROPERTIES(nel_vertex_tree_paint PROPERTIES SUFFIX ".dlm")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(nel_vertex_tree_paint "MAX Plugin: NeL Vertex Tree Painter")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_RUNTIME_FLAGS(nel_vertex_tree_paint)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_LIB_SUFFIX(nel_vertex_tree_paint)
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Vertex Tree Painter")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS nel_vertex_tree_paint RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries) INSTALL(TARGETS nel_vertex_tree_paint RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)

View file

@ -2,9 +2,8 @@ FILE(GLOB SRC *.cpp *.h *.def)
ADD_LIBRARY(tile_utility SHARED ${SRC} tile_utility.rc) ADD_LIBRARY(tile_utility SHARED ${SRC} tile_utility.rc)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(tile_utility TARGET_LINK_LIBRARIES(tile_utility
${LIBXML2_LIBRARIES}
nelmisc nelmisc
nel3d nel3d
nel_mesh_lib nel_mesh_lib
@ -14,15 +13,9 @@ TARGET_LINK_LIBRARIES(tile_utility
Version.lib Version.lib
comctl32.lib) comctl32.lib)
SET_TARGET_PROPERTIES(tile_utility PROPERTIES SET_TARGET_PROPERTIES(tile_utility PROPERTIES SUFFIX ".dlu")
VERSION ${NL_VERSION} NL_DEFAULT_PROPS(tile_utility "MAX Plugin: Tile Utility")
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}" NL_ADD_RUNTIME_FLAGS(tile_utility)
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}" NL_ADD_LIB_SUFFIX(tile_utility)
SUFFIX ".dlu"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: Tile Utility")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS tile_utility RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries) INSTALL(TARGETS tile_utility RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)