Changed: Updated 3dsmax plugins CMake projects

This commit is contained in:
kervala 2010-09-01 13:54:42 +02:00
parent 2924395a85
commit d0388890e9
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)
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(ligoscape_utility
${LIBXML2_LIBRARIES}
nelmisc
nelligo
nel3d
@ -15,15 +15,11 @@ TARGET_LINK_LIBRARIES(ligoscape_utility
nel_3dsmax_shared
comctl32)
SET_TARGET_PROPERTIES(ligoscape_utility PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
SUFFIX ".dlx"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: Ligoscape Utility")
SET_TARGET_PROPERTIES(ligoscape_utility PROPERTIES SUFFIX ".dlx")
NL_DEFAULT_PROPS(ligoscape_utility "MAX Plugin: Ligoscape Utility")
NL_ADD_RUNTIME_FLAGS(ligoscape_utility)
NL_ADD_LIB_SUFFIX(ligoscape_utility)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS ligoscape_utility 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_3dsmax_shared SHARED ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_3dsmax_shared
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -12,15 +11,12 @@ TARGET_LINK_LIBRARIES(nel_3dsmax_shared
${MAXSDK_LIBRARIES}
Version.lib)
SET_TARGET_PROPERTIES(nel_3dsmax_shared PROPERTIES
VERSION ${NL_VERSION}
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 3DSMAX Shared")
NL_DEFAULT_PROPS(nel_3dsmax_shared "MAX Plugin: NeL 3DSMAX Shared")
NL_ADD_RUNTIME_FLAGS(nel_3dsmax_shared)
NL_ADD_LIB_SUFFIX(nel_3dsmax_shared)
SET_TARGET_PROPERTIES(nel_export PROPERTIES SUFFIX ".dlx")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DNEL_3DSMAX_SHARED_EXPORTS)
ADD_DEFINITIONS(-DNEL_3DSMAX_SHARED_EXPORTS)
IF(WITH_PCH)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_export
${LIBXML2_LIBRARIES}
nelmisc
nelpacs
nel3d
@ -19,15 +19,11 @@ TARGET_LINK_LIBRARIES(nel_export
${MAXSDK_LIBRARIES}
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_export PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlu"
PROJECT_LABEL "MAX Plugin: NeL Export")
NL_DEFAULT_PROPS(nel_export "MAX Plugin: NeL Export")
NL_ADD_RUNTIME_FLAGS(nel_export)
NL_ADD_LIB_SUFFIX(nel_export)
SET_TARGET_PROPERTIES(nel_export PROPERTIES SUFFIX ".dlu")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})

View file

@ -2,18 +2,11 @@ FILE(GLOB SRC *.cpp *.h)
ADD_LIBRARY(nel_mesh_lib STATIC ${SRC})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR} ${MAXSDK_CS_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_mesh_lib ${LIBXML2_LIBRARIES} nelmisc)
SET_TARGET_PROPERTIES(nel_mesh_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 Mesh Library")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR} ${MAXSDK_CS_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_mesh_lib nelmisc)
NL_DEFAULT_PROPS(nel_mesh_lib "MAX Plugin: NeL Mesh Library")
NL_ADD_RUNTIME_FLAGS(nel_mesh_lib)
NL_ADD_LIB_SUFFIX(nel_mesh_lib)
IF(WITH_PCH)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_converter
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -14,13 +13,9 @@ TARGET_LINK_LIBRARIES(nel_patch_converter
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_converter PROPERTIES
VERSION ${NL_VERSION}
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Patch Converter")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
SET_TARGET_PROPERTIES(nel_patch_converter PROPERTIES SUFFIX ".dlm")
NL_DEFAULT_PROPS(nel_patch_converter "MAX Plugin: NeL Patch Converter")
NL_ADD_RUNTIME_FLAGS(nel_patch_converter)
NL_ADD_LIB_SUFFIX(nel_patch_converter)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_edit
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -14,16 +13,10 @@ TARGET_LINK_LIBRARIES(nel_patch_edit
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_edit PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Patch Editor")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
SET_TARGET_PROPERTIES(nel_patch_edit PROPERTIES SUFFIX ".dlm")
NL_DEFAULT_PROPS(nel_patch_edit "MAX Plugin: NeL Patch Editor")
NL_ADD_RUNTIME_FLAGS(nel_patch_edit)
NL_ADD_LIB_SUFFIX(nel_patch_edit)
IF(WITH_PCH)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_edit_adv
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -14,15 +13,9 @@ TARGET_LINK_LIBRARIES(nel_patch_edit_adv
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_edit_adv PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
SUFFIX ".dlm"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Patch Edit (Adv)")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
SET_TARGET_PROPERTIES(nel_patch_edit_adv PROPERTIES SUFFIX ".dlm")
NL_DEFAULT_PROPS(nel_patch_edit_adv "MAX Plugin: NeL Patch Edit (Adv)")
NL_ADD_RUNTIME_FLAGS(nel_patch_edit_adv)
NL_ADD_LIB_SUFFIX(nel_patch_edit_adv)
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})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_lib
${LIBXML2_LIBRARIES}
nelmisc
nel3d
${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})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_lib nelmisc nel3d ${MAXSDK_LIBRARIES})
NL_DEFAULT_PROPS(nel_patch_lib "MAX Plugin: NeL Patch Library")
NL_ADD_RUNTIME_FLAGS(nel_patch_lib)
NL_ADD_LIB_SUFFIX(nel_patch_lib)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_patch_paint
${LIBXML2_LIBRARIES}
nelmisc
nelligo
nel3d
@ -17,14 +17,10 @@ TARGET_LINK_LIBRARIES(nel_patch_paint
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_patch_paint PROPERTIES
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
VERSION ${NL_VERSION}
SUFFIX ".dlm"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: NeL Patch Painter")
SET_TARGET_PROPERTIES(nel_patch_paint PROPERTIES SUFFIX ".dlm")
NL_DEFAULT_PROPS(nel_patch_paint "MAX Plugin: NeL Patch Painter")
NL_ADD_RUNTIME_FLAGS(nel_patch_paint)
NL_ADD_LIB_SUFFIX(nel_patch_paint)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(nel_vertex_tree_paint
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -14,15 +14,9 @@ TARGET_LINK_LIBRARIES(nel_vertex_tree_paint
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(nel_vertex_tree_paint PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
SUFFIX ".dlm"
PROJECT_LABEL "MAX Plugin: NeL Vertex Tree Painter")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
SET_TARGET_PROPERTIES(nel_vertex_tree_paint PROPERTIES SUFFIX ".dlm")
NL_DEFAULT_PROPS(nel_vertex_tree_paint "MAX Plugin: NeL Vertex Tree Painter")
NL_ADD_RUNTIME_FLAGS(nel_vertex_tree_paint)
NL_ADD_LIB_SUFFIX(nel_vertex_tree_paint)
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)
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${MAXSDK_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${MAXSDK_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(tile_utility
${LIBXML2_LIBRARIES}
nelmisc
nel3d
nel_mesh_lib
@ -14,15 +13,9 @@ TARGET_LINK_LIBRARIES(tile_utility
Version.lib
comctl32.lib)
SET_TARGET_PROPERTIES(tile_utility PROPERTIES
VERSION ${NL_VERSION}
LINK_FLAGS_DEBUG "${CMAKE_LINK_FLAGS_DEBUG}"
LINK_FLAGS_RELEASE "${CMAKE_LINK_FLAGS_RELEASE}"
SUFFIX ".dlu"
DEBUG_POSTFIX "_d"
RELEASE_POSTFIX "_r"
PROJECT_LABEL "MAX Plugin: Tile Utility")
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
SET_TARGET_PROPERTIES(tile_utility PROPERTIES SUFFIX ".dlu")
NL_DEFAULT_PROPS(tile_utility "MAX Plugin: Tile Utility")
NL_ADD_RUNTIME_FLAGS(tile_utility)
NL_ADD_LIB_SUFFIX(tile_utility)
INSTALL(TARGETS tile_utility RUNTIME DESTINATION maxplugin/plugins LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)