We also need to make some changes in tutorial.cxx, so that it no longerįinally, update MathFunctions/MathFunctions. JoeAB (Joe Brown) April 30, 2021, 7:06pm 3 I ran strace on my test program. DBUILDSHAREDLIBSON: Build a shared object (instead of an archive). 1NB: This fails miserably for static builds. a 64-bit Linux on IBM Z and LinuxONE platforms (s390x), a Linux kernel version. The PLCnext CLI installs an older version of CMake which does not support the. You can write code that queries where the library itself is on disk 1 then look relative to that. You can build a shared object library containing both these classes. This depends on how libnsdkcompanyglue.so ends up looking for the file. Cmake_minimum_required( VERSION 3.15 ) # set the project name and version project( Tutorial VERSION 1.0 ) # specify the C++ standard add_library( tutorial_compiler_flags INTERFACE ) target_compile_features( tutorial_compiler_flags INTERFACE cxx_std_11 ) # add compiler warning flags just when building this project via # the BUILD_INTERFACE genex set( gcc_like_cxx "$" ) set( msvc_cxx "$" ) target_compile_options( tutorial_compiler_flags INTERFACE "$>" "$>" ) # control where the static and shared libraries are built so that on windows # we don't need to tinker with the path to run the executable set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "$ In this section we will show how the BUILDSHAREDLIBS variable can be used to control the default behavior of addlibrary(), and allow control over how. All CMake can do is put it in the right place.
0 Comments
Leave a Reply. |