aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-03-30 19:02:19 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-03-30 19:02:19 +0200
commit75a0bc1e8e199f3c817e1a42410721f95c975400 (patch)
tree9ef6d03844e5ea48d4219861ccc340472e2be6a8 /CMakeLists.txt
parent3150af527af5b2ed97e6e5f25929a1ecefc935fe (diff)
downloadsynthpod-75a0bc1e8e199f3c817e1a42410721f95c975400.tar.xz
improve src tree structure. add portaudio client.
* improve source directory structure * prototype portaudio client (synthpod_pa) * make everything crosscompile with mingw32-w64
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt42
1 files changed, 13 insertions, 29 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 889481a2..530c69da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,14 +5,21 @@ project(synthpod)
# pkg-config
find_package(PkgConfig REQUIRED)
include(CheckIncludeFiles)
+include(CheckFunctionExists)
include_directories(${PROJECT_SOURCE_DIR})
-include_directories(${PROJECT_SOURCE_DIR}/cjson)
include_directories(${PROJECT_BINARY_DIR})
set(APP_DIR share/synthpod)
-#set(LIBS "")
-#add_definitions("-std=gnu99" "-fdump-rtl-expand")
+if(WIN32)
+ add_definitions("-std=gnu11")
+endif()
+
+# options
+option(BUILD_UI OFF)
+option(BUILD_TEST OFF)
+option(BUILD_JACK OFF)
+option(BUILD_PORTAUDIO OFF)
# eina
pkg_search_module(EINA REQUIRED eina>=1.8)
@@ -30,39 +37,16 @@ include_directories(${LILV_INCLUDE_DIRS})
pkg_search_module(LV2 REQUIRED lv2>=1.10)
include_directories(${LV2_INCLUDE_DIRS})
-option(BUILD_UI OFF)
if(BUILD_UI)
+ add_definitions("-DBUILD_UI")
+
# elm
pkg_search_module(ELM REQUIRED elementary>=1.8)
include_directories(${ELM_INCLUDE_DIRS})
endif()
-add_executable(test_varchunk
- test_varchunk.c
- varchunk.c)
-target_link_libraries(test_varchunk ${UV_LDFLAGS})
-
-find_program(EDJE_CC NAMES edje_cc)
-if(EDJE_CC_NOTFOUND)
- message(SEND_ERROR "edje_cc not found")
-else(EDJE_CC_NOTFOUND)
- message(STATUS "edje_cc found: " ${EDJE_CC})
-endif(EDJE_CC_NOTFOUND)
-
-add_custom_command(
- OUTPUT ${PROJECT_BINARY_DIR}/synthpod.edj
- COMMAND ${EDJE_CC} ARGS
- "-fd" ${PROJECT_SOURCE_DIR}/font
- "-id" ${PROJECT_SOURCE_DIR}/pix
- ${PROJECT_SOURCE_DIR}/synthpod.edc
- ${PROJECT_BINARY_DIR}/synthpod.edj
- DEPENDS
- ${PROJECT_SOURCE_DIR}/synthpod.edc
- ${PROJECT_SOURCE_DIR}/patcher.edc)
-add_custom_target(THEME ALL DEPENDS ${PROJECT_BINARY_DIR}/synthpod.edj)
-install(FILES ${PROJECT_BINARY_DIR}/synthpod.edj DESTINATION ${APP_DIR})
-
add_subdirectory(lib)
add_subdirectory(bin)
add_subdirectory(plugins)
add_subdirectory(ext)
+add_subdirectory(data)