Changeset: c807f964b5c1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c807f964b5c1
Added Files:
        sql/backends/monet5/generator/CMakeLists.txt
Modified Files:
        sql/backends/monet5/CMakeLists.txt
Branch: cmake-fun
Log Message:

Compiles and install generator module.


diffs (48 lines):

diff --git a/sql/backends/monet5/CMakeLists.txt 
b/sql/backends/monet5/CMakeLists.txt
--- a/sql/backends/monet5/CMakeLists.txt
+++ b/sql/backends/monet5/CMakeLists.txt
@@ -9,8 +9,8 @@
 #[[if(NOT WIN32)
        add_subdirectory(vaults)
 endif()
-add_subdirectory(UDF)
-add_subdirectory(generator)#]]
+add_subdirectory(UDF)#]]
+add_subdirectory(generator)
 
 include_directories(../../include ../../common ../../storage ../../server 
../../../monetdb5/modules/atoms 
                                        ../../../monetdb5/modules/kernel 
../../../monetdb5/mal ../../../monetdb5/modules/mal 
diff --git a/sql/backends/monet5/generator/CMakeLists.txt 
b/sql/backends/monet5/generator/CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/sql/backends/monet5/generator/CMakeLists.txt
@@ -0,0 +1,29 @@
+#[[
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0.  If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
+#]]
+
+include_directories(../../../include ../../../common ../../../storage 
../../../server ../../../../monetdb5/modules/atoms
+                                       ../../../../monetdb5/modules/kernel 
../../../../monetdb5/mal ../../../../monetdb5/modules/mal
+                                       ../../../../monetdb5/optimizer 
../../../../monetdb5/scheduler ../../../../common/options
+                                       ../../../../common/stream 
../../../../common/utils ../../../../gdk)
+
+
+add_library(generator MODULE generator.c  generator.h)
+target_link_libraries(generator PRIVATE monetdb5 gdk)
+set_target_properties(generator PROPERTIES RUNTIME_OUTPUT_NAME _generator 
LIBRARY_OUTPUT_NAME _generator
+                                         COMPILE_DEFINITIONS "LIBGENERATOR")
+
+install(TARGETS generator DESTINATION ${LIBDIR}/monetdb5)
+install(FILES generator.mal DESTINATION ${LIBDIR}/monetdb5)
+install(FILES 90_generator.mal DESTINATION ${LIBDIR}/monetdb5/autoload)
+install(FILES 90_generator.sql DESTINATION ${LIBDIR}/monetdb5/createdb)
+
+if(HAVE_HGE)
+       install(FILES generator_hge.mal DESTINATION ${LIBDIR}/monetdb5)
+       install(FILES 90_generator_hge.mal DESTINATION 
${LIBDIR}/monetdb5/autoload)
+       install(FILES 90_generator_hge.sql DESTINATION 
${LIBDIR}/monetdb5/createdb)
+endif()
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to