aboutsummaryrefslogtreecommitdiff
path: root/props.lv2/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-07 10:58:52 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-07 10:58:52 +0200
commitf42d2337cfba49be6868905d57ad28af4a6a2053 (patch)
tree7ab71fe36ccc093161505e89fe186640f37fd3b7 /props.lv2/CMakeLists.txt
parent12e61f66451039eab6580d562b3e8e87fb5e26d5 (diff)
parent28e396adb8d82630fc7f6b5b141b47f2c4deab41 (diff)
downloadsherlock.lv2-f42d2337cfba49be6868905d57ad28af4a6a2053.tar.xz
Add 'props.lv2/' from commit '28e396adb8d82630fc7f6b5b141b47f2c4deab41'
git-subtree-dir: props.lv2 git-subtree-mainline: 12e61f66451039eab6580d562b3e8e87fb5e26d5 git-subtree-split: 28e396adb8d82630fc7f6b5b141b47f2c4deab41
Diffstat (limited to 'props.lv2/CMakeLists.txt')
-rw-r--r--props.lv2/CMakeLists.txt41
1 files changed, 41 insertions, 0 deletions
diff --git a/props.lv2/CMakeLists.txt b/props.lv2/CMakeLists.txt
new file mode 100644
index 0000000..2fff6f0
--- /dev/null
+++ b/props.lv2/CMakeLists.txt
@@ -0,0 +1,41 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(props.lv2)
+
+include_directories(${PROJECT_SOURCE_DIR})
+include_directories(${PROJECT_BINARY_DIR})
+
+set(CMAKE_C_FLAGS "-std=gnu99 -Wextra -Wno-unused-parameter -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
+set(CMAKE_MODULE_LINKER_FLAGS "-Wl,-z,nodelete ${CMAKE_MODULE_LINKER_FLAGS}")
+add_definitions("-D_GNU_SOURCE=1") # asprintf
+
+set(PROPS_MAJOR_VERSION 0)
+set(PROPS_MINOR_VERSION 1)
+set(PROPS_MICRO_VERSION 1)
+set(PROPS_VERSION "${PROPS_MAJOR_VERSION}.${PROPS_MINOR_VERSION}.${PROPS_MICRO_VERSION}")
+add_definitions("-DPROPS_VERSION=\"${PROPS_VERSION}\"")
+
+set(DEST lib/lv2/props.lv2)
+if(WIN32)
+ set(LIB_EXT ".dll")
+elseif(APPLE)
+ set(LIB_EXT ".so")
+else()
+ set(LIB_EXT ".so")
+endif()
+
+find_package(PkgConfig) # ${PKG_CONFIG_FOUND}
+
+# props
+add_library(props MODULE
+ test/props.c)
+target_link_libraries(props ${LIBS})
+set_target_properties(props PROPERTIES PREFIX "")
+install(TARGETS props DESTINATION ${DEST})
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/test/props.ttl DESTINATION ${DEST})
+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/test/chunk.bin DESTINATION ${DEST})
+
+# manifest
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test/manifest.ttl.in ${PROJECT_BINARY_DIR}/manifest.ttl)
+install(FILES ${PROJECT_BINARY_DIR}/manifest.ttl DESTINATION ${DEST})