Create cdroot directory on common CMakeLists.txt

This commit is contained in:
Xavier Del Campo Romero 2022-07-23 04:14:40 +02:00
parent 7a6f5cd2e6
commit 79c0164c21
4 changed files with 1 additions and 3 deletions

View File

@ -20,6 +20,7 @@ endif()
add_executable(${PROJECT_NAME} "src/main.c")
set(cdroot ${CMAKE_BINARY_DIR}/cdimg)
file(MAKE_DIRECTORY ${cdroot})
# Avoid C11 since it is not supported by the i386-mingw32 toolchain.
set(cflags -Wall -g3 -ffunction-sections -fdata-sections -pedantic -std=c99)

View File

@ -1,4 +1,3 @@
file(MAKE_DIRECTORY ${cdroot})
find_package(SDL 1.2 REQUIRED)
find_package(SDL_mixer 1.2 REQUIRED)
find_package(SDL_gfx 2.0 REQUIRED)

View File

@ -2,7 +2,6 @@ if("$ENV{PSXSDK_PATH}" STREQUAL "")
message(FATAL_ERROR "Please set PSXSDK_PATH env variable first")
endif()
file(MAKE_DIRECTORY ${cdroot})
add_library(psx STATIC IMPORTED)
set_property(TARGET psx PROPERTY IMPORTED_LOCATION $ENV{PSXSDK_PATH}/lib/libpsx.a)

View File

@ -1,4 +1,3 @@
file(MAKE_DIRECTORY ${cdroot})
if("$ENV{SDL_PATH}" STREQUAL "")
message(FATAL_ERROR "please define env variable SDL_PATH")
elseif("$ENV{SDL_MIXER_PATH}" STREQUAL "")