2019-04-22 17:26:35 +00:00
|
|
|
|
|
|
|
FIND_PACKAGE(LIBGSF)
|
|
|
|
|
|
|
|
IF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
|
|
|
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
|
|
|
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
|
|
|
|
2019-04-22 19:05:01 +00:00
|
|
|
FIND_PACKAGE(GOBJECT2)
|
|
|
|
|
|
|
|
if (NOT GOBJECT2_FOUND)
|
|
|
|
MESSAGE(FATAL_ERROR "GOBJECT2 not found!")
|
|
|
|
ENDIF (NOT GOBJECT2_FOUND)
|
|
|
|
|
2019-04-22 17:26:35 +00:00
|
|
|
FIND_PACKAGE(GLIB2)
|
|
|
|
|
|
|
|
if (NOT GLIB2_FOUND)
|
|
|
|
MESSAGE(FATAL_ERROR "GLIB2 not found!")
|
|
|
|
ENDIF (NOT GLIB2_FOUND)
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${GLIB2_INCLUDE_DIRS})
|
|
|
|
INCLUDE_DIRECTORIES(${LIBGSF_INCLUDE_DIR})
|
|
|
|
|
|
|
|
FILE(GLOB SRCS *.cpp builtin/*.cpp builtin/storage/*.cpp update1/*.cpp epoly/*.cpp)
|
|
|
|
FILE(GLOB HDRS *.h builtin/*.h builtin/storage/*.h update1/*.h epoly/*.h)
|
|
|
|
|
|
|
|
NL_TARGET_LIB(pipeline_max
|
|
|
|
${SRCS}
|
|
|
|
${HDRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(pipeline_max
|
|
|
|
${LIBGSF_LIBRARIES}
|
|
|
|
${GLIB2_LIBRARIES}
|
2019-04-22 19:05:01 +00:00
|
|
|
${GOBJECT2_LIBRARIES}
|
2019-04-22 17:26:35 +00:00
|
|
|
nelmisc
|
|
|
|
)
|
|
|
|
|
|
|
|
SET_TARGET_PROPERTIES(pipeline_max PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
|
|
|
|
|
NL_DEFAULT_PROPS(pipeline_max "NeL, Tools, 3D: Pipeline Max (Library)")
|
|
|
|
NL_ADD_LIB_SUFFIX(pipeline_max)
|
|
|
|
NL_ADD_RUNTIME_FLAGS(pipeline_max)
|
|
|
|
|
|
|
|
IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|
|
|
|
INSTALL(TARGETS pipeline_max LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|
|
ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
|