# Rewrite 5
- Move Libraries Source into pd directory and give them all their own CMakeLists.txt - Partial rewrite core (color, autogenerated vec), lithium (now uses UNIQUE PTR for Commands), UI7 - Use MenuV2 as new standart in UI7 - Implementz ViewPort Pre alpha to UI7 - Add Line Drawing to DrawList (not Working) - Implement a Complete new drievrs API (static Drivers) - NO SUPPORT FOR SHARED LIBRARY BUILDS IN VERSION 5 YET - Add Tools to Autogenerate Headers and Stuff
This commit is contained in:
44
test/CMakeLists.txt
Normal file → Executable file
44
test/CMakeLists.txt
Normal file → Executable file
@ -5,26 +5,36 @@ project(test)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED true)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
|
||||
|
||||
set(CMAKE_INSTALL_BINDIR ".")
|
||||
add_subdirectory(.. palladium)
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
|
||||
add_subdirectory(../backends/desktop backend-desktop)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
|
||||
if(${PD_BUILD_SHARED})
|
||||
message(ERROR "3DS Only supports Static libraries")
|
||||
endif()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-psabi -O2")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS} -fno-rtti -fno-exceptions")
|
||||
endif()
|
||||
|
||||
add_subdirectory(../ palladium)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
|
||||
add_subdirectory(../backends/3ds pd-3ds)
|
||||
else()
|
||||
add_subdirectory(../backends/3ds backend-3ds)
|
||||
add_subdirectory(../backends/desktop pd-desktop)
|
||||
endif()
|
||||
|
||||
add_executable(test source/main.cpp
|
||||
${BKND_SRC})
|
||||
target_include_directories(test PUBLIC ../backends)
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
|
||||
target_link_libraries(test PUBLIC pd-backend-desktop glad glfw)
|
||||
install(TARGETS test RUNTIME DESTINATION ".")
|
||||
set(RC_FILES
|
||||
testassets/ComicNeue.ttf
|
||||
testassets/logo.png
|
||||
testassets/test.png)
|
||||
install(FILES ${RC_FILES} DESTINATION ".")
|
||||
${BKND_SRC})
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Nintendo3DS")
|
||||
target_link_libraries(test PUBLIC pd-3ds palladium)
|
||||
else()
|
||||
target_link_libraries(test PUBLIC pd-backend-3ds ctru citro3d)
|
||||
endif()
|
||||
target_link_libraries(test PUBLIC pd-desktop palladium)
|
||||
endif()
|
||||
|
||||
#set(RC_FILES
|
||||
#testassets/ComicNeue.ttf
|
||||
#testassets/logo.png
|
||||
#testassets/test.png)
|
||||
#install(FILES ${RC_FILES} DESTINATION ".")
|
||||
#else()
|
||||
#target_link_libraries(test PUBLIC pd-backend-3ds ctru citro3d)
|
||||
#endif()
|
Reference in New Issue
Block a user