2012-05-29 13:31:11 +00:00
|
|
|
FILE(GLOB SRC *.cpp *.h)
|
|
|
|
|
|
|
|
ADD_LIBRARY(object_viewer_dll SHARED ${SRC} object_viewer.rc)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(object_viewer_dll
|
|
|
|
nelmisc
|
|
|
|
nel3d
|
|
|
|
nelsound
|
|
|
|
nelsnd_lowlevel
|
|
|
|
Version.lib)
|
|
|
|
|
|
|
|
NL_DEFAULT_PROPS(object_viewer_dll "NeL, Tools, 3D: Object Viewer DLL")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(object_viewer_dll)
|
|
|
|
NL_ADD_LIB_SUFFIX(object_viewer_dll)
|
|
|
|
|
2016-01-27 11:56:16 +00:00
|
|
|
ADD_DEFINITIONS(${MFC_DEFINITIONS} -DOBJECT_VIEWER_LIB_EXPORTS)
|
2012-05-29 13:31:11 +00:00
|
|
|
|
|
|
|
IF(WITH_PCH)
|
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(object_viewer_dll ${CMAKE_CURRENT_SOURCE_DIR}/std_afx.h ${CMAKE_CURRENT_SOURCE_DIR}/std_afx.cpp)
|
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
2012-09-27 20:11:26 +00:00
|
|
|
INSTALL(TARGETS object_viewer_dll LIBRARY DESTINATION ${NL_LIB_PREFIX} RUNTIME DESTINATION ${NL_BIN_PREFIX} ARCHIVE DESTINATION ${NL_LIB_PREFIX} COMPONENT tools3d)
|
|
|
|
INSTALL(FILES object_viewer.cfg DESTINATION ${NL_ETC_PREFIX} COMPONENT tools3d)
|
2012-05-29 13:31:11 +00:00
|
|
|
IF(WITH_MAXPLUGIN)
|
|
|
|
INSTALL(TARGETS object_viewer_dll RUNTIME DESTINATION maxplugin COMPONENT tools3d)
|
|
|
|
INSTALL(FILES object_viewer.cfg DESTINATION maxplugin COMPONENT tools3d)
|
|
|
|
ENDIF(WITH_MAXPLUGIN)
|