aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 15:07:41 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 15:07:41 +0100
commit645a594ed4409178b8522a8ef2e430ab103f857a (patch)
treee7e1fc38dea4584025fbc24ee9ef215be6be6315 /CMakeLists.txt
parent107cd3d8c15e0d2a35094d38504fc6aecfaa9058 (diff)
downloadsherlock.lv2-645a594ed4409178b8522a8ef2e430ab103f857a.tar.xz
add cmake cross build script.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index add1c85..95462ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,7 +56,11 @@ include_directories(${LV2_INCLUDE_DIRS})
pkg_search_module(SRATOM REQUIRED sratom-0>=0.4.0)
include_directories(${SRATOM_INCLUDE_DIRS})
-set(LIBS_UI ${LIBS_UI} ${SRATOM_LDFLAGS})
+if(DEFINED STATIC_SRATOM)
+ set(LIBS_UI ${STATIC_SRATOM} ${STATIC_SORD} ${STATIC_SERD} ${LIBS_UI})
+else()
+ set(LIBS_UI ${LIBS_UI} ${SRATOM_LDFLAGS})
+endif()
find_package(OpenGL)
if(${OPENGL_FOUND})