summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Eefting <edwin@datux.nl>2012-12-24 00:45:41 (GMT)
committer Edwin Eefting <edwin@datux.nl>2012-12-24 00:45:41 (GMT)
commit7b2dbfcbfdcd25e096ac78fe34c77b6253d1c371 (patch)
tree88410a7b30a6c63d3ce056bc9f0650b819e13361
parentdf0ad217ed0601b4d80da5bc8cbf4eb2cd0c73fc (diff)
woops shouldnt have removed this
-rw-r--r--modules/mp.module/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/mp.module/CMakeLists.txt b/modules/mp.module/CMakeLists.txt
new file mode 100644
index 0000000..bdc27da
--- /dev/null
+++ b/modules/mp.module/CMakeLists.txt
@@ -0,0 +1,28 @@
+#this is just a basic CMakeLists.txt, for more information see the cmake manpage
+
+cmake_minimum_required(VERSION 2.6)
+
+#add definitions, compiler switches, etc.
+ADD_DEFINITIONS()
+
+#Determine name of the .so module:
+#A module should always be in a modulename.module directory!.
+string(REGEX REPLACE ".*/([^/]*).module$" "\\1" module_name "${CMAKE_CURRENT_BINARY_DIR}")
+MESSAGE(STATUS "Module name of ${CMAKE_CURRENT_BINARY_DIR} is: '${module_name}'")
+
+#automaticly add all sourcefiles to current module
+file(GLOB sources *.cpp)
+ADD_LIBRARY(${module_name} MODULE ${sources})
+
+#need to link to some other libraries ? just add them here
+TARGET_LINK_LIBRARIES(${module_name})
+
+INCLUDE_DIRECTORIES(../..)
+
+#add an install target here
+#INSTALL_FILES(...)
+#INSTALL_PROGRAMS(...)
+#INSTALL_TARGET(...)
+
+
+