diff --git a/docs/Todo.todo b/docs/Todo.todo new file mode 100644 index 0000000..75d3cbb --- /dev/null +++ b/docs/Todo.todo @@ -0,0 +1,3 @@ + +✔ @high Add an option to change the compiler/generator (vs version, clang, etc) @done(22-04-18 17:58) +☐ Add library source directories to the root CMake project include directories \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 525c737..47e9f78 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -284,7 +284,7 @@ int main(int argc, char** argv) } // Link to any libs that exist or add space to link to submodules added through git - if (libraries.size() > 0 || argParser.ContainsOption("-gs")) + if (libraries.size() > 0) { ofs << "\n\ntarget_link_directories(${PROJECT_NAME} "; @@ -294,13 +294,18 @@ int main(int argc, char** argv) } ofs << ")"; - ofs << "\n\ntarget_link_libraries(${PROJECT_NAME}"; + ofs << "\n\ntarget_link_libraries(${PROJECT_NAME} "; for (int i = 0; i < libraries.size(); i++) { ofs << " " << libraries[i].c_str(); } ofs << ")"; } + else if (argParser.ContainsOption("-gs")) + { + ofs << "\n\n# target_link_directories(${PROJECT_NAME} )"; + ofs << "\n\n# target_link_libraries(${PROJECT_NAME} )"; + } }