Skip to content
  • Yann Voté's avatar
    [CMake] work by Yann Voté · b954f8cf
    Yann Voté authored and Sebastien Petitdemange's avatar Sebastien Petitdemange committed
    This is a combination of 17 commits.
    Make shared install targets work on Win32
    Error message is 'install library TARGETS given no DESTINATION!'
    See
    http://stackoverflow.com/questions/14990343/cmake-error-targets-given-no-library-destination-for-shared-library-target
    [simulator/cmake] Make shared install targets work on Win32
    Error message is 'install library TARGETS given no DESTINATION!'
    See
    http://stackoverflow.com/questions/14990343/cmake-error-targets-given-no-library-destination-for-shared-library-target
    [cmake] Fix duplicate path for created folder
    On Windows, Cmake ends up trying to create
    `C:\...\simulatorC:\...\simulator\sip` folder and aborts with error
    `file problem creating directory`.
    Or `Could not create output directory
    C:\...\_build\C:\...\_build\sip\core`
    So remove duplicate path.
    [cmake] Add Processlib include folder for windows
    This folder contains many Windows specific header files. And most
    notably a Windows version of `pthread.h`.
    Hence error message `pthread.h: no such file or directory` disapears.
    [cmake] Do not use HwFileEventMgr.cpp
    This file causes an error due to missing dirent.h on Windows. Plus it is
    not included in .vcproj files before CMake was introduced.
    [cmake] Do not use RegExUtils.cpp
    This file causes an error due to missing regex.h on Windows. Plus it is
    not included in .vcproj files before CMake was introduced.
    [cmake] Add compile definition to fix dllimport error
    Error message is `definition of dllimport: static data member not
    allowed`
    The ``LIMACORE_EXPORTS`` variable is used in LimaCompatibility.h header
    file.
    [cmake] Link to rt only in Linux
    rt.lib does not exists in Windows.
    [cmake] Do not use env var to checksipexc.py execution
    Using environment variable to decide whether or not to execute the script
    is not portable in Windows.
    Since this script should be run only for camera, use string comparison
    instead (is `camera` in the name).
    [cmake] Add variables so that msbuild find NumPy
    On Windows, the GNU Scientific Library gets installed in a specific
    folder. So for msbuild.exe to find it, we add more variables that can be
    used when invoking cmake. For example:
    cmake -D NUMPY_INCLUDE_DIR="C:\Anaconda2\Lib\site-packages\numpy\core\include" ...
    This is needed because of error message `numpyconfig.h: no such file or
    directory`
    [cmake] Export library as .dll (not as .lib)
    Hence get rid of `output filename matches input filename` error message.
    [simulator/cmake] Add compile definition to fix dllimport error
    Error message is `unresolved external symbol __declspec(dllimport)`
    The ``LIBSIMULATOR_EXPORTS`` variable is used in
    SimulatorCompatibility.h header file.
    [cmake] Do no use sip splits for simulator camera
    For the simulator camera, only 5 files are generated by SIP
    (`siplimasimulatorpart{0,1,2,3,4}.cpp`). Hence the process crash
    trying to find file number 5 (`No such file or directory
    siplimasimulatorpart5.cpp`)
    Put everything in one file.
    [cmake] Do not use GCC specific flags on Windows
    `-Wl` and `--no-undefined` are specific to GCC. On windows, we end up
    with a warning `unrecognized option`.
    We suppress this warning.
    [cmake] Make windows install script find CMake paths
    Adapt Windows install script to the CMake tree. Build files are not in
    the same place than previously.
    [cmake] Update install script to CMake
    There is now only one solution file to build.
    [cmake] Add lib prefix to target on Windows
    b954f8cf