Open alextwothousand opened 3 years ago
no merge?
as for me, the project file isn't ready yet:
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:
cmake --build . --target install ...
);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.
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
in your project parent path's CMakeLists.txt, before your
add_subdirectory
line.