mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-23 23:41:15 +00:00
Update CMakeLists.txt to have more comments also my windows 11 computer was not building isle-U so switching to actions
This commit is contained in:
parent
648637a866
commit
99193bee37
@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.25...4.0 FATAL_ERROR)
|
|||||||
project(isle LANGUAGES CXX C VERSION 0.1)
|
project(isle LANGUAGES CXX C VERSION 0.1)
|
||||||
|
|
||||||
if(WIIU)
|
if(WIIU)
|
||||||
|
# used to fix an error
|
||||||
add_library(SDL2_WiiU STATIC IMPORTED)
|
add_library(SDL2_WiiU STATIC IMPORTED)
|
||||||
set_target_properties(SDL2_WiiU PROPERTIES
|
set_target_properties(SDL2_WiiU PROPERTIES
|
||||||
IMPORTED_LOCATION /opt/devkitpro/portlibs/wiiu/lib/libSDL2.a
|
IMPORTED_LOCATION /opt/devkitpro/portlibs/wiiu/lib/libSDL2.a
|
||||||
@ -215,6 +216,7 @@ add_library(lego1
|
|||||||
)
|
)
|
||||||
# endif()
|
# endif()
|
||||||
if(NOT WIIU)
|
if(NOT WIIU)
|
||||||
|
# used to fix an error
|
||||||
target_precompile_headers(lego1 PRIVATE "LEGO1/lego1_pch.h")
|
target_precompile_headers(lego1 PRIVATE "LEGO1/lego1_pch.h")
|
||||||
endif()
|
endif()
|
||||||
set_property(TARGET lego1 PROPERTY DEFINE_SYMBOL "LEGO1_DLL")
|
set_property(TARGET lego1 PROPERTY DEFINE_SYMBOL "LEGO1_DLL")
|
||||||
@ -228,7 +230,7 @@ target_include_directories(lego1 PUBLIC "$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/L
|
|||||||
target_link_libraries(lego1 PRIVATE SDL3::SDL3)
|
target_link_libraries(lego1 PRIVATE SDL3::SDL3)
|
||||||
target_link_libraries(lego1 PUBLIC SDL3::Headers)
|
target_link_libraries(lego1 PUBLIC SDL3::Headers)
|
||||||
target_link_libraries(lego1 PRIVATE $<$<BOOL:${ISLE_USE_DX5}>:DirectX5::DirectX5>)
|
target_link_libraries(lego1 PRIVATE $<$<BOOL:${ISLE_USE_DX5}>:DirectX5::DirectX5>)
|
||||||
if(WIIU) # this is the only way to stop miniaudio atomics error when building isle.rpx and lego1.rpx
|
if(WIIU) # this is the only way to stop miniaudio atomics error when building isle.rpx and lego1.rpl
|
||||||
target_sources(lego1 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/atomic-dummy/atomic.c)
|
target_sources(lego1 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/atomic-dummy/atomic.c)
|
||||||
endif()
|
endif()
|
||||||
# Allow unconditional include of miniwin/miniwind3d.h
|
# Allow unconditional include of miniwin/miniwind3d.h
|
||||||
@ -591,7 +593,7 @@ if (ISLE_BUILD_APP)
|
|||||||
if (WIN32)
|
if (WIN32)
|
||||||
target_link_libraries(isle PRIVATE winmm)
|
target_link_libraries(isle PRIVATE winmm)
|
||||||
endif()
|
endif()
|
||||||
if(WIIU) # this is the only way to stop miniaudio atomics error when building isle.rpx and lego1.rpx
|
if(WIIU) # this is the only way to stop miniaudio atomics error when building isle.rpx and lego1.rpl
|
||||||
target_sources(isle PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/atomic-dummy/atomic.c)
|
target_sources(isle PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/atomic-dummy/atomic.c)
|
||||||
endif()
|
endif()
|
||||||
# Link LEGO1
|
# Link LEGO1
|
||||||
@ -952,7 +954,7 @@ if(WIIU)
|
|||||||
wut_create_rpx(isle)
|
wut_create_rpx(isle)
|
||||||
|
|
||||||
install(FILES "$<TARGET_FILE_DIR:isle>/isle.rpx" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
install(FILES "$<TARGET_FILE_DIR:isle>/isle.rpx" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
# install(FILES "$<TARGET_FILE_DIR:lego1>/lego1.rpl" DESTINATION "${CMAKE_INSTALL_PREFIX}/code")
|
# install(FILES "$<TARGET_FILE_DIR:lego1>/lego1.rpl" DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
if(BUILD_WUHB)
|
if(BUILD_WUHB)
|
||||||
# i did some resreach idk if this works i will test it out when im done with tiramisu version
|
# i did some resreach idk if this works i will test it out when im done with tiramisu version
|
||||||
# makes isle.wuhb (Amroma environment ONLY)
|
# makes isle.wuhb (Amroma environment ONLY)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user