system lib3ds under linux

This commit is contained in:
alemuntoni 2020-04-19 16:01:32 +02:00
parent 1d8193b6ef
commit b71a3bade5
4 changed files with 38 additions and 2 deletions

View File

@ -28,5 +28,5 @@ echo "Build path is: " $BUILD_PATH
SOURCE_PATH=$PWD/../../src
cd $BUILD_PATH
qmake $SOURCE_PATH/meshlab.pro "CONFIG+= system_eigen3 system_glew system_openctm system_lib3ds"
qmake $SOURCE_PATH/meshlab.pro
make -j4

View File

@ -28,5 +28,5 @@ echo "Build path is: " $BUILD_PATH
SOURCE_PATH=$PWD/../../src
cd $BUILD_PATH
qmake $SOURCE_PATH/meshlab.pro "CONFIG+=meshlab_mini system_eigen3 system_glew"
qmake $SOURCE_PATH/meshlab.pro "CONFIG+=meshlab_mini"
make -j4

View File

@ -1,3 +1,11 @@
# this pri file finds all the external libraries already installed in the system
# that could be used instead of the ones placed in the external folder.
# to avoid to use system libraries and to use only the ones in the external folder,
# execute qmake with the following argument:
# qmake "CONFIG+=disable_system_libs"
!disable_system_libs {
linux {
#### static libs ####
@ -12,6 +20,11 @@ linux {
CONFIG += system_openctm
}
#lib3ds
exists(/usr/lib/x86_64-linux-gnu/lib3ds.so){
CONFIG += system_lib3ds
}
#### header only libs ####
#eigen
@ -24,3 +37,5 @@ linux {
CONFIG += system_glew
}
}
}

View File

@ -285,3 +285,24 @@ edit_select.depends = common
QMAKE_EXTRA_TARGETS += first copydir
}
#
# this is just for project info
# prints all the system libraries that meshlab is using instead of
# the ones placed in the external folder.
# The libraris are included effectively in general.pri and
# in external.pro
#
include(find_system_libs.pri)
system_eigen3 {
message("Using system eigen3")
}
system_glew {
message("Using system glew")
}
system_openctm {
message("Using system openctm")
}
system_lib3ds {
message("Using system lib3ds")
}