![]() ![]() In this case, I'd change the install command to: install (TARGETS helloWorld RUNTIME DESTINATION bin)Īnd remove set(CMAKE_INSTALL_PREFIX. ![]() Likewise, it's not really user-friendly to hard code the CMAKE_INSTALL_PREFIX (at least without a warning). Just as an aside, it's usual to specify relative paths in the install command to allow the user to select the install root. If your project is in the C: drive, I expect you'll find that C:\bin\helloWorld.exe actually does exist: Visual Studio hasn't been lying to you :-) My main.cpp file is just: # include int main ()/bin resolves to /bin (dereferencing an undefined string in CMake unfortunately doesn't generate a warning) and /bin is an absolute path. I've successfully set up the most minimal Hello, World! C++ application possible for Visual Studio 2012 on Windows 7, but I've got one last nagging thing that's not quite right and I can't figure out why :( ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |