How can I set the executable name in CMake?
I tried using set(EXECUTABLE_OUTPUT_PATH "...")
, but that only specifies the directory where the executable is created. I also need to change the name of the executable itself. How can I do this?
How can I set the executable name in CMake?
I tried using set(EXECUTABLE_OUTPUT_PATH "...")
, but that only specifies the directory where the executable is created. I also need to change the name of the executable itself. How can I do this?
Have you tried using SET_TARGET_PROPERTIES and using the OUTPUT_NAME property?
I bit more explicit:
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "your name")