[CMake] Set CMAKE_TOOLCHAIN_FILE from cmake-gui

2009-05-26 Thread Roland Waltersson
Hi, I am trying to get a user to choose target from cmake-gui, with: SET(TARGET "x86" CACHE STRING "Target (x86 or arm)") #some code here to construct CMAKE_TOOLCHAIN_FILE from TARGET variable This however don't work as the compiler settings are initialized when cmake-gui starts, not when the use

Re: [CMake] adding files with Eclipse CDT4 Generator

2009-05-25 Thread Roland Waltersson
Thanks it works now. I did an out-of-source build but I forgot to clean some cache files from earlier tries. / Roland 2009/5/25 Eric Noulard > 2009/5/25 Roland Waltersson : > > Hi I have a small sample project in Eclipse. cmake generates it fine > > and it builds fine, but

[CMake] adding files with Eclipse CDT4 Generator

2009-05-25 Thread Roland Waltersson
Hi I have a small sample project in Eclipse. cmake generates it fine and it builds fine, but i can't see any source code files in the project browser. This is my CMakeLists.txt file: cmake_minimum_required(VERSION 2.6) project(WINCABase) add_library(WINCABase constants.hpp exception.hpp version.hp