generated from DotKuribo/BetterSunshineModule
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
46 lines (32 loc) · 1.72 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.8)
project(SunshineCoop VERSION 1.0)
set(CMAKE_CXX_STANDARD 20)
file(GLOB BETTER_MODULE_SRC
"src/*.c"
"src/*.cpp"
"src/**/*.cpp"
"include/*.h"
"include/*.hxx"
"include/**/*.hxx"
)
add_executable(SunshineCoop ${BETTER_MODULE_SRC} "src/patches/pvp.cpp")
add_subdirectory(lib/BetterSunshineEngine)
target_link_libraries(SunshineCoop PUBLIC BetterSunshineEngine)
target_include_directories(SunshineCoop PUBLIC "include")
target_compile_options(SunshineCoop PUBLIC ${SMS_COMPILE_FLAGS})
target_link_options(SunshineCoop PUBLIC ${SMS_LINK_FLAGS})
list(APPEND BETTER_MODULE_CONFIG_DEFINES "KURIBO_NO_TYPES" "Sunshine_Coop=\"v1.0\"")
target_compile_definitions(SunshineCoop PUBLIC ${BETTER_MODULE_CONFIG_DEFINES})
add_custom_target(${PROJECT_NAME}.kxe ALL DEPENDS ${PROJECT_NAME})
add_custom_command(
TARGET ${PROJECT_NAME}.kxe
COMMAND ${PROJECT_SOURCE_DIR}/lib/BetterSunshineEngine/tools/KuriboConverter.exe ARGS ${PROJECT_NAME} ${PROJECT_NAME}.kxe ${PROJECT_SOURCE_DIR}/lib/BetterSunshineEngine/maps/${SMS_REGION}.map
)
add_custom_command(
TARGET ${PROJECT_NAME}.kxe
COMMAND ${PROJECT_SOURCE_DIR}/lib/BetterSunshineEngine/tools/KuriboConverter.exe ARGS ${PROJECT_NAME} "C:/Users/robgr/OneDrive/Documents/Projects/Mario_sunshine/speedrunning/mario sunshine/iso/better_sunshine_2 - Copy (3)/root/files/Kuribo!/Mods/${PROJECT_NAME}.kxe" ${PROJECT_SOURCE_DIR}/lib/BetterSunshineEngine/maps/${SMS_REGION}.map
)
add_custom_command(
TARGET ${PROJECT_NAME}.kxe
COMMAND "C:/Program Files/Dolphin/Dolphin.exe" ARGS --logger --debugger --exec "C:/Users/robgr/OneDrive/Documents/Projects/Mario_sunshine/speedrunning/mario sunshine/iso/better_sunshine_2 - Copy (3)/root/sys/main.dol"
)