summaryrefslogtreecommitdiffstats
path: root/src/modules/perlcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/perlcore')
-rw-r--r--src/modules/perlcore/CMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/modules/perlcore/CMakeLists.txt b/src/modules/perlcore/CMakeLists.txt
new file mode 100644
index 0000000..cf17d7c
--- /dev/null
+++ b/src/modules/perlcore/CMakeLists.txt
@@ -0,0 +1,25 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/include/${PROJECT_NAME}
+ ${PERL_INCLUDE_PATH}
+)
+
+
+##### kviperlcore
+
+add_custom_command(
+ OUTPUT xs.inc
+ COMMAND xsubpp
+ ARGS -noversioncheck -C++ -noprototypes -output xs.inc ${CMAKE_CURRENT_SOURCE_DIR}/KVIrc.xs
+)
+
+add_custom_target( _xs.inc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/xs.inc )
+
+tde_add_kpart( libkviperlcore AUTOMOC
+ SOURCES libkviperlcore.cpp
+ LINK kvirc-shared ${PERL_LIBRARY}
+ DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/modules
+ DEPENDENCIES _xs.inc
+)