News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

use CMake with CodeBlocks

Started by pasparis, February 18, 2012, 03:27:20 PM

Previous topic - Next topic

pasparis

I have a problem trying to use CMake with CodeBlocks

I do the following things(thanks to the cmake mail list which helped me)

-create a folder pCMake
-put the cmakelists file in it
        cmake_minimum_required(VERSION 2.8)
        project(pCMake)
        add_executable(pCMake main.cpp)

-put a main.cpp print "hello"

then in the cmake-gui interface
source code : c:/pCMake
binaries : c:/pCMake

then execute the Generate

it creates the pCMake codeblocks project,then project->properties->Build targets Type console application
and then when I want to built/Run I get the message
it seems that this project has not been built yet.do you want to built it now? answser yes
it builts but if I want to run it says again the same message "it seems that ..."

I don't understand why, any suggestions would be helpful
pascal





stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

pasparis

thank you I am going to see what is suggested in the link