Hello,
Is it possible to create an executable in your top directory if you don't
have there any program? I mean, if all your programs .c and .cpp are in
subdirectories contained in your top directory, each one with its own
CMakeLists.txt.
I have three subdirectories, and all my programs are in
Thanks a lot Eric
Actually I am trying to move a project already done to CMake, and it doesn't
have any executable in the top directory, it is now done in Windows under
Visual Studio.
In the top directory I have a CMakeLists,txt that calls each one of the
subdirectories in which I have also
You can specify partial paths in CMakeLists files - that is, if you
want an executable target created in the main directory, but the files
are in the src directory, you can do something like
add_executable(mytarget src/main.cpp)
It sounds like you might have a situation where you have multiple