Commit bef2bed1 authored by mzed's avatar mzed
Browse files

Adding helloRapidMix to CMake

parent 6be877e6
......@@ -93,13 +93,16 @@ add_library(RAPID-MIX_API SHARED ${RAPIDMIX_FULL_SRC})
add_executable(rapidmixTest tests/rapidMixTest.cpp )
add_executable(helloRapidMix ${PROJECT_SOURCE_DIR}/examples/HelloRapidMix/HelloRapidMix/main.cpp)
if (APPLE)
find_library(ACCELERATE Accelerate)
if (NOT ACCELERATE)
message(FATAL_ERROR "Accelearate not found")
endif()
target_link_libraries(RAPID-MIX_API ${ACCELERATE})
target_link_libraries(rapidmixTest RAPID-MIX_API)
else()
target_link_libraries(rapidmixTest RAPID-MIX_API)
endif()
target_link_libraries(RAPID-MIX_API ${ACCELERATE})
endif()
target_link_libraries(rapidmixTest RAPID-MIX_API)
target_link_libraries(helloRapidMix RAPID-MIX_API)
......@@ -9,4 +9,5 @@ mkdir build
cd build
cmake ..
make
./rapidmixTest
\ No newline at end of file
./rapidmixTest
cp ./helloRapidMix ../examples/HelloRapidMix/helloRapidMix
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment