-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from anthonyprintup/relative-paths
Added support for relative paths in `link-libraries`
- Loading branch information
Showing
7 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[project] | ||
name = "relative-paths" | ||
|
||
[target.test-library] | ||
type = "static" | ||
sources = ["src/library-code.cpp"] | ||
|
||
[target.example] | ||
type = "executable" | ||
sources = ["src/main.cpp"] | ||
windows.link-libraries = ["libs/test-library-x64-Release.lib"] |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Created by Anthony Printup on 9/18/2023. | ||
#include <cstdio> | ||
|
||
extern "C" void library_function() { | ||
std::puts("Hello from library_function!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Created by Anthony Printup on 9/18/2023. | ||
#include <cstdio> | ||
|
||
#ifdef WIN32 | ||
extern "C" void library_function(); | ||
#endif | ||
int main() { | ||
puts("Hello from cmkr(relative-paths)!"); | ||
#ifdef WIN32 | ||
library_function(); | ||
#endif | ||
} |