aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-02-25 15:08:16 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-02-25 15:08:16 +0100
commite361a4e559738724a35312469c64116441562daf (patch)
tree2257d5081ce9a26d01ba69b5ad6675cc1ce2f083 /CMakeLists.txt
downloadsherlock.lv2-e361a4e559738724a35312469c64116441562daf.tar.xz
initial commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..e0f1d48
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,37 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(sherlock.lv2)
+
+include_directories(${PROJECT_SOURCE_DIR})
+include_directories(${PROJECT_SOURCE_DIR}/libosc)
+
+set(DEST lib/lv2/sherlock.lv2)
+set(LIB_EXT ".so")
+
+find_package(PkgConfig) # ${PKG_CONFIG_FOUND}
+
+pkg_search_module(LV2 REQUIRED lv2>=1.10)
+include_directories(${LV2_INCLUDE_DIRS})
+set(LIBS ${LIBS} ${LV2_LDFLAGS})
+
+pkg_search_module(ELM REQUIRED elementary>=1.8)
+include_directories(${ELM_INCLUDE_DIRS})
+set(LIBS_UI ${LIBS_UI} ${ELM_LDFLAGS})
+
+add_library(sherlock MODULE
+ sherlock.c
+ atom.c)
+target_link_libraries(sherlock ${LIBS})
+set_target_properties(sherlock PROPERTIES PREFIX "")
+install(TARGETS sherlock DESTINATION ${DEST})
+
+add_library(sherlock_ui MODULE
+ sherlock_ui.c
+ atom_ui.c)
+target_link_libraries(sherlock_ui ${LIBS_UI})
+set_target_properties(sherlock_ui PROPERTIES PREFIX "")
+install(TARGETS sherlock_ui DESTINATION ${DEST})
+
+configure_file(${PROJECT_SOURCE_DIR}/manifest.ttl.in ${PROJECT_BINARY_DIR}/manifest.ttl)
+install(FILES ${PROJECT_BINARY_DIR}/manifest.ttl DESTINATION ${DEST})
+install(FILES ${PROJECT_SOURCE_DIR}/sherlock.ttl DESTINATION ${DEST})