|
@@ -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})
|