OpenCOLLADA/CMakeLists.txt: : Build type, GNUInstallDirs, and version fixes
Use CMAKE_BUILD_TYPE which can be overrided with custom distro types
Adhere to GNU filesystem layout conventions. Not all distros and OSes have directories in the same locations and they define the GNUInstallDirs variables, so use those variables. Also, this enables multi lib installations.
Define the version variables to enable SONAME versioning on the library files in case there is ABI changes in the future.
Please note: I set SONAME to be major.minor as I don't know what ABI version you are on. If it's been the same since the beginning, then it can just be set to 1, or if there was a only one change, then 2 and so on. I don't know if there even were ABI changes. However, it would be nice to have at lease a SONAME of 1 just in case there are future ABI changes.
Let me know if you want change how the variables are handled, so I can push updates to this patch.
SUCCESS: exercise-opencollada-pull-request build #141
- COLLADA-MAX-PC-PULL-REQUEST build #444 with result SUCCESS. Artifacts: Max 2011 Max 2012 Max 2013 Max 2014 Max 2015 Max 2016 Max 2017 Max 2018
- COLLADA-MAYA-PC-PULL-REQUEST build #439 with result SUCCESS. Artifacts: Maya 2011 Maya 2012 Maya 2013 Maya 2014 Maya 2015 Maya 2016 Maya 2017 Maya 2018
- Maya-2015_2017-mac-pull-request build #428 with result SUCCESS. Artifacts: Maya 2015 Maya 2016 Maya 2017
- openCOLLADA-mac-pull-request build #438 with result SUCCESS. Artifacts: OpenCOLLADA Mac
- openCOLLADA-pc-pull-request build #433 with result SUCCESS. Artifacts: OpenCOLLADA Win
- openCOLLADA-ubuntu-pull-request build #327 with result SUCCESS. Artifacts: OpenCOLLADA Ubuntu
Pull Requests:
- PR https://github.com/KhronosGroup/OpenCOLLADA/pull/561: OpenCOLLADA/CMakeLists.txt: : Build type, GNUInstallDirs, and version fixes OpenCOLLADA
Hi. any update of this?
greetings