X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=i686-linux-gnu-4.7%2Ftoolset.cmake;fp=i686-linux-gnu-4.7%2Ftoolset.cmake;h=a62ef881ee6cc41f2a3f39fa97f5d32aa0e1f143;hb=94df942c2c7bd3457276fe5b7367623cbb8c1302;hp=0000000000000000000000000000000000000000;hpb=4dd7d9155a920895ff7b1cb6b9c9c676aa62000a;p=cross.git diff --git a/i686-linux-gnu-4.7/toolset.cmake b/i686-linux-gnu-4.7/toolset.cmake new file mode 100644 index 0000000..a62ef88 --- /dev/null +++ b/i686-linux-gnu-4.7/toolset.cmake @@ -0,0 +1,23 @@ +# Define our host system +SET(CMAKE_SYSTEM_NAME Linux) +SET(CMAKE_SYSTEM_VERSION 1)# Define the cross compiler locations +SET(CMAKE_C_COMPILER /opt/cross/i686-linux-gnu-4.7/usr/bin/x86_64-linux-gnu-gcc-4.7) +SET(CMAKE_CXX_COMPILER /opt/cross/i686-linux-gnu-4.7/usr/bin/x86_64-linux-gnu-g++-4.7) +SET(CMAKE_FIND_ROOT_PATH /opt/cross/i686-linux-gnu-4.7/) + +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# Search for libraries and headers in the target directories only +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +#add_definitions(-Wall -std=c11) +add_definitions(-Wall) +add_compile_options(-std=c++11) +add_compile_options(--sysroot=/opt/cross/i686-linux-gnu-4.7/) +#add_compile_options(-fPIC) +#add_compile_options(-DSHARED) +add_compile_options(-m32) +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" ) +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 --sysroot=/opt/cross/i686-linux-gnu-4.7/" ) +#set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -print-search-dirs" ) +set(CMAKE_LIBRARY_PATH /opt/cross/i686-linux-gnu-4.7/usr/lib/x86_64-linux-gnu/32) +