CMakeLists.txt 619 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
    SET(SWITCH_ASSEMBLY "custom_stack_callback_x86_64.s")
elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "arm" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
    SET(SWITCH_ASSEMBLY "custom_stack_callback_arm32.s")
else ()
    MESSAGE(FATAL_ERROR "Platform (${CMAKE_SYSTEM_PROCESSOR} on ${CMAKE_SYSTEM_NAME}) not supported! Please see Readme for instructions to port.")
endif ()


add_executable(playground main.cpp ${SWITCH_ASSEMBLY})

# Example for adding the library to your app (as a cmake project dependency)
target_link_libraries(playground)