-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
46 lines (37 loc) · 1.52 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(PROJECT_NAME uwuifier)
project(${PROJECT_NAME})
find_file(WINDOWS_HEADER windows.h)
if(NOT WINDOWS_HEADER)
message(FATAL_ERROR "Can't find windows.h!")
endif()
set(BOOST_REGEX_STANDALONE ON)
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
target_include_directories(${PROJECT_NAME} PRIVATE
libraries/hackpro
libraries/minhook/include
libraries/boost/regex/include
libraries/gd.h/include
libraries/gd.h
libraries/cocos-headers/
libraries/cocos-headers/extensions
libraries/cocos-headers/cocos2dx
libraries/cocos-headers/cocos2dx/include
libraries/cocos-headers/cocos2dx/kazmath/include
libraries/cocos-headers/cocos2dx/platform/win32
libraries/cocos-headers/cocos2dx/platform/third_party/win32
libraries/cocos-headers/cocos2dx/platform/third_party/win32/OGLES
)
add_subdirectory(libraries/minhook)
target_link_libraries(${PROJECT_NAME} minhook)
add_subdirectory(libraries/boost/regex)
target_link_libraries(${PROJECT_NAME} boost_regex)
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/libraries/hackpro/hackpro.lib)
target_link_options(${PROJECT_NAME} PRIVATE "/DELAYLOAD:hackpro.dll")
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/libraries/cocos-headers/cocos2dx/libcocos2d.lib)
# not needed most of the time
target_link_libraries(${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/libraries/cocos-headers/extensions/libExtensions.lib)