-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
57 lines (46 loc) · 1.43 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
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 3.7)
include(FetchContent)
project(AutomataGadget)
set(
SOURCES
include/Main.h
include/cApp.h
include/InventoryPanel.hpp
include/SettingsPanel.hpp
include/PlayerPanel.hpp
include/WeaponPanel.hpp
include/defines.h
src/Main.cpp
src/cApp.cpp
src/InventoryPanel.cpp
src/SettingsPanel.cpp
src/PlayerPanel.cpp
src/WeaponPanel.cpp
)
add_executable(${PROJECT_NAME} WIN32 ${SOURCES})
target_sources(${PROJECT_NAME} PRIVATE resources/resources.rc)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${PROJECT_NAME})
include_directories(include)
include_directories(lib/NieRHook/include)
########### NieRHook ###########
add_definitions(-DUSING_WINSOCK2)
add_subdirectory(lib/NieRHook)
target_link_libraries(${PROJECT_NAME} NieRHook)
target_include_directories(${PROJECT_NAME} PUBLIC /lib/NieRHook/include)
########### wxWidgets ###########
set(wxBUILD_SHARED OFF CACHE BOOL "Build wx libraries as shared libs")
set(wxBUILD_PRECOMP OFF CACHE BOOL "Use precompiled headers")
set(wxBUILD_MONOLITHIC OFF CACHE BOOL "Build a single library")
FetchContent_Declare(
wxWidgets
GIT_REPOSITORY https://github.com/wxWidgets/wxWidgets.git
GIT_TAG v3.1.4
GIT_SHALLOW TRUE
)
FetchContent_GetProperties(wxWidgets)
FetchContent_MakeAvailable(wxWidgets)
target_link_libraries(${PROJECT_NAME}
wxbase
wxcore
wxnet
)