Hi,
Management byCMakeworks well underWindows with Visual Studioand
Linuxwith GCC.
The paths of the several libraries are found.
Now, I want tocompile an applicationwindowon linuxwithmingw.
My cross compilation file is as follows :
# this one is important
SET(CMAKE_SYSTEM_NAME Windows)
#this one not so much
#SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/i586-mingw32msvc-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/i586-mingw32msvc-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc/ /home/code/dependencies/
/home/code/dependencies/lib/)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Windowslibrariesare notfoundinmy filesfindXXX.cmake
Howthe variableshould be set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY and
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE?
Thanks for your help,
Julien
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake