diff --git a/.gitignore b/.gitignore index fc6df4e7..5c70d044 100755 --- a/.gitignore +++ b/.gitignore @@ -279,8 +279,9 @@ cathook.cbp .settings \.directory -\.kdev4/cathook\.kdev4 - -cathook\.kdev4 - scripts/updater-preferences + +/modules/* +/modules/*/ +!/modules/readme.md +!/modules/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 520c9b88..90d131bf 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,7 @@ set_target_properties(cathook PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY add_subdirectory(src) add_subdirectory(include) add_subdirectory(external) +add_subdirectory(modules) set_target_properties(cathook PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "${CMAKE_SOURCE_DIR}/include/common.hpp", "${CMAKE_SOURCE_DIR}/include/hacks/hacklist.hpp") cotire(cathook) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt new file mode 100755 index 00000000..a04a31da --- /dev/null +++ b/modules/CMakeLists.txt @@ -0,0 +1,2 @@ +file(GLOB_RECURSE ModuleSources ${CMAKE_CURRENT_LIST_DIR} *.cpp) +target_sources(cathook PRIVATE ${ModuleSources}) diff --git a/modules/readme.md b/modules/readme.md new file mode 100644 index 00000000..04f19de1 --- /dev/null +++ b/modules/readme.md @@ -0,0 +1,2 @@ +# Modules +You can copy&paste **custom** cathook modules into this folder. They will be compiled and linked after running ./update.