Skip to content

Commit

Permalink
update for arm64 and max-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Ramirez committed Jun 17, 2021
1 parent 061ab7a commit 050ccc1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/min-lib-unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ add_definitions(
#set(CMAKE_C_FLAGS "-fprofile-arcs -ftest-coverage")
#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")

if (APPLE)
#set(CMAKE_OSX_ARCHITECTURES x86_64;i386)
set(CMAKE_OSX_ARCHITECTURES x86_64)
endif ()

add_executable(${PROJECT_NAME} ${PROJECT_NAME}.cpp)

target_link_libraries(${PROJECT_NAME} PUBLIC "mock_kernel")


if (APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-Wl,-F'${C74_MAX_API_DIR}/lib/mac', -weak_framework JitterAPI")
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS
"-Wl,-F'${MAX_SDK_MSP_INCLUDES}', -weak_framework MaxAudioAPI, -Wl,-F'${MAX_SDK_JIT_INCLUDES}', -weak_framework JitterAPI"
)
target_compile_options(${PROJECT_NAME} PRIVATE -DCATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS)

# The build dir won't be present the first time the test is compiled.
Expand Down

0 comments on commit 050ccc1

Please sign in to comment.