plugin-sdk
plugin-sdk copied to clipboard
add CMakeLists.txt for editors such as CLion
I added a CMakeLists for editors such as CLion, or for those who may use vscode / sublime text.
To enable SA/VC/3, just use
option(GTA_SAN_ANDREAS ON)
# and/or
option(GTA_VICE_CITY ON)
# and/or
option(GTA_III ON)
in your project parent path's CMakeLists.txt, before your add_subdirectory
line.
no merge?
as for me, the project file isn't ready yet:
- no way to build examples with cmake;
- not all macros are written (e.g. for sa):
target_compile_definitions(plugin_sdk PUBLIC
_CRT_SECURE_NO_WARNINGS
_DX9_SDK_INSTALLED
_CRT_NON_CONFORMING_SWPRINTFS
GTASA
GTAGAME_NAME="San Andreas"
GTAGAME_ABBR="SA"
GTAGAME_ABBRLOW="sa"
GTAGAME_PROTAGONISTNAME="CJ"
GTAGAME_CITYNAME="San Andreas"
PLUGIN_SGV_10US
)
all macros can be found in premake.lua
i would also like:
- install library (
cmake --build . --target install ...
); - use namespace (e.g.
target_link_libraries(project PRIVATE pluginsdk::sa)
).
as for me, the project file isn't ready yet:
* no way to build examples with cmake; * not all macros are written (e.g. for sa):
target_compile_definitions(plugin_sdk PUBLIC _CRT_SECURE_NO_WARNINGS _DX9_SDK_INSTALLED _CRT_NON_CONFORMING_SWPRINTFS GTASA GTAGAME_NAME="San Andreas" GTAGAME_ABBR="SA" GTAGAME_ABBRLOW="sa" GTAGAME_PROTAGONISTNAME="CJ" GTAGAME_CITYNAME="San Andreas" PLUGIN_SGV_10US )
all macros can be found in
premake.lua
i would also like:
* install library (`cmake --build . --target install ...`); * use namespace (e.g. `target_link_libraries(project PRIVATE pluginsdk::sa)`).
Will look into it at some point.
https://github.com/imring/plugin-sdk/tree/cmake
https://github.com/imring/plugin-sdk/tree/cmake
or https://gist.github.com/THE-FYP/104855c5fdd7311a336a5178a0b33118