Have a look at section B.1.3 in the VXL book for examples of how to set up your CMakeLists.txt file. You are missing this line:
From: Hao Wu [mailto:email@example.com]
Sent: Friday, July 19, 2013 12:17 PM
Subject: [Vxl-users] HelloWorld
I am new to VXL and I just installed it on Windows. I want to test it by building my first project "VXL_HelloWorld" but it failed when building in Visual Studio 2010.
Here is my CMakeLists.txt:
ADD_EXECUTABLE(HelloWorld HelloWorld.cxx )
TARGET_LINK_LIBRARIES( HelloWorld vcl )
And here is my source code:
// send string "hello world" to the standard output stream cout.
vcl_cout << "Hello world\n";
After I use CMake to compile and generate the project, I opened the .sln file and try to build it but it failed and gives the following errors:
Error 1 error C1083: Cannot open include file: 'vcl_iostream.h': No such file or directory
2 IntelliSense: cannot open source file "vcl_iostream.h"
3 IntelliSense: identifier "vcl_cout" is undefined
I guess there may be some problem with my CMakeLists.txt.
Could you help me find out the problem?