-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add basic add_commonlibsf_plugin command, add header-only fmt
- Loading branch information
1 parent
54afd52
commit ed72849
Showing
4 changed files
with
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
CMakeUserPresets.json | ||
CMakeFiles | ||
CMakeCache.txt | ||
*.cmake | ||
/out* | ||
/.vs* | ||
/.vscode* | ||
|
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,12 @@ | ||
function(add_commonlibsf_plugin TARGET) | ||
set(options OPTIONAL USE_SIGNATURE_SCANNING) | ||
set(oneValueArgs AUTHOR) | ||
set(multiValueArgs SOURCES) | ||
cmake_parse_arguments(ADD_COMMONLIBSF_PLUGIN "${options}" "${oneValueArgs}" "${multiValueArgs}") | ||
|
||
add_library("${TARGET}" SHARED ${ADD_COMMONLIBSF_PLUGIN_SOURCES}) | ||
|
||
target_link_libraries(${TARGET} | ||
PRIVATE | ||
CommonLibSF::CommonLibSF) | ||
endfunction() |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
include(CMakeFindDependencyMacro) | ||
|
||
find_dependency(fmt CONFIG) | ||
find_dependency(spdlog CONFIG) | ||
find_dependency(xbyak CONFIG) |