-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
32 lines (25 loc) · 1.04 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
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
project(robtop-replay VERSION 1.0.0)
find_file(WINDOWS_HEADER windows.h)
if(NOT WINDOWS_HEADER)
message(FATAL_ERROR "Can't find windows.h!")
endif()
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
add_library(robtop-replay SHARED ${SOURCE_FILES})
target_include_directories(robtop-replay PRIVATE
libraries/minhook/include
libraries/cappuccino-sdk/incl/cocos2dx/
libraries/cappuccino-sdk/incl/cocos2dx/platform/win32
libraries/cappuccino-sdk/incl/cocos2dx/include
libraries/cappuccino-sdk/incl/cocos2dx/platform/third_party/win32/OGLES
libraries/cappuccino-sdk/incl/cocos2dx/kazmath/include
)
add_subdirectory(libraries/minhook)
target_link_libraries(robtop-replay minhook)
target_link_libraries(robtop-replay ${CMAKE_SOURCE_DIR}/libraries/cappuccino-sdk/lib/cappuccino.lib)
set_target_properties(robtop-replay PROPERTIES PREFIX "")
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})