Browse Source

kiro support

max 7 years ago
parent
commit
53ee654e83
3 changed files with 13 additions and 3 deletions
  1. 10 2
      CMakeLists.txt
  2. 1 0
      src/myco-daemon.c
  3. 2 1
      src/myco-modules-kiro.c

+ 10 - 2
CMakeLists.txt

@@ -1,11 +1,19 @@
 cmake_minimum_required(VERSION 3.3)
-project (Mycorrhiza)
+project (Mycorrhiza C)
+
 #add_definitions(--std=c99)
 set(CMAKE_EXE_LINKER_FLAGS "-lrt")
 
+find_package(PkgConfig)
+#find_package(kiro REQUIRED)
+pkg_check_modules(KIRO kiro>=1.0 REQUIRED)
+include_directories(${KIRO_INCLUDE_DIRS})
+
 add_executable(mycoagent test/mycoagent.c)
 add_executable(mycoagent2 test/mycoagent2.c)
 add_executable(mycoagent3 test/mycoagent3.c)
 add_executable(mycodaemon test/mycodaemon.c)
 add_executable(mycoindexer test/mycoindexer.c)
-#target_link_libraries(mycoagent rt)
+
+#target_link_libraries(Mycorrhiza ${KIRO_LIBRARIES})
+target_link_libraries(mycoagent ${KIRO_LIBRARIES})

+ 1 - 0
src/myco-daemon.c

@@ -15,6 +15,7 @@
 
 #include "myco-daemon.h"
 #include "../src/myco-memory.c"
+#include "../src/myco-modules.h"
 
 #define DEBUG 1
 

+ 2 - 1
src/myco-modules-kiro.c

@@ -13,6 +13,7 @@
    Franklin St, Fifth Floor, Boston, MA 02110, USA
    */
 
-#include "../../kiro/kiro-server.h"
+//#include "../../kiro/src/kiro-server.h"
+#include <kiro/kiro-server.h>