-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (21 loc) · 841 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
25 lines (21 loc) · 841 Bytes
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
cmake_minimum_required(VERSION 3.20)
project(HotelMarioRecomp C)
set(CDIRECOMP_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../cdirecomp" CACHE PATH
"Path to the sibling cdirecomp checkout")
if(NOT EXISTS "${CDIRECOMP_ROOT}/runner/CMakeLists.txt")
message(FATAL_ERROR
"cdirecomp was not found at ${CDIRECOMP_ROOT}. "
"Clone it beside HotelMarioRecomp or set -DCDIRECOMP_ROOT=...")
endif()
set(CDI_COSIM_BUILD OFF CACHE BOOL "" FORCE)
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
add_subdirectory("${CDIRECOMP_ROOT}/runner"
"${CMAKE_BINARY_DIR}/cdirecomp-runtime")
set_target_properties(CdiRuntime PROPERTIES
OUTPUT_NAME "HotelMarioRecomp"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}"
)
target_compile_definitions(CdiRuntime PRIVATE
CDI_REQUIRE_DISC=1
CDI_PRODUCT_NAME=\"HotelMarioRecomp\"
)