Skip to content

Commit

Permalink
cmake script
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Dec 25, 2017
1 parent 5ea89c9 commit 99aeed0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Bela/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
option(BUILD_BELA "Build Bela main program" OFF)

if(BUILD_BELA)
make_executable(belacsound ./main.cpp ${CSOUNDLIB})
target_link_libraries(belacsound ${CSOUNDLIB} -L$ENV{HOME}/Bela/lib -L/root/Bela/lib
-Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib
-lpthread_rt -lxenomai -lpthread -lrt -lcobalt -lmodechk -lbela
-lbelaextra -lNE10)
target_include_directories(belacsound PRIVATE /usr/xenomai/include/posix
/usr/local/include $ENV{HOME}/Bela/include /root/Bela/lib)
set_target_properties(belacsound PROPERTIES COMPILE_FLAGS
"-std=c++11 -D_GNU_SOURCE -D_REENTRANT -D__XENO__")
endif()

0 comments on commit 99aeed0

Please sign in to comment.