Skip to content

Instantly share code, notes, and snippets.

@jlgerber
Created December 31, 2016 23:47
Show Gist options
  • Save jlgerber/d9fd8c7f55f9a8dd2b04ad7ca008802e to your computer and use it in GitHub Desktop.
Save jlgerber/d9fd8c7f55f9a8dd2b04ad7ca008802e to your computer and use it in GitHub Desktop.
cmake - specify location where executables and libraries get built
# I like putting artifacts in a private directory in the build tree. Here is how i do it
# define where executable products go
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/private/bin)
# define where library products go
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/private/lib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment