Skip to content
Permalink
Browse files

Add support for third-party modules

  • Loading branch information...
TotallyNotElite committed Dec 16, 2018
1 parent 829a8f2 commit 1f1412c4cd5b6bb5e2050b396539e5cfd1b2900d
Showing with 10 additions and 4 deletions.
  1. +5 −4 .gitignore
  2. +1 −0 CMakeLists.txt
  3. +2 −0 modules/CMakeLists.txt
  4. +2 −0 modules/readme.md
@@ -279,8 +279,9 @@ cathook.cbp
.settings
\.directory

\.kdev4/cathook\.kdev4

cathook\.kdev4

scripts/updater-preferences

/modules/*
/modules/*/
!/modules/readme.md
!/modules/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)
@@ -0,0 +1,2 @@
file(GLOB_RECURSE ModuleSources ${CMAKE_CURRENT_LIST_DIR} *.cpp)
target_sources(cathook PRIVATE ${ModuleSources})
@@ -0,0 +1,2 @@
# Modules
You can copy&paste **custom** cathook modules into this folder. They will be compiled and linked after running ./update.

0 comments on commit 1f1412c

Please sign in to comment.
You can’t perform that action at this time.