summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-27 22:10:15 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-27 22:10:15 -0500
commit273579ecce2c69eb6ba2b375ce2ed21e7b15ed72 (patch)
tree66ae979852dd13bdddada155ad9330a961c38ef7
parente9de92d934b7a7e9192841eaf0177debdda8c1a0 (diff)
downloadsigen-273579ecce2c69eb6ba2b375ce2ed21e7b15ed72.tar.gz
sigen-273579ecce2c69eb6ba2b375ce2ed21e7b15ed72.tar.xz
sigen-273579ecce2c69eb6ba2b375ce2ed21e7b15ed72.zip
Add sigencore build files
-rw-r--r--CMakeLists.txt8
-rw-r--r--sigencore/CMakeLists.txt63
2 files changed, 71 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5e3d7740..9c0cba69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,14 @@ IF (PHONON_FOUND)
)
ENDIF (PHONON_FOUND)
+IF (KDE4_FOUND)
+ ADD_SUBDIRECTORY(sigencore)
+ ADD_DEPENDENCIES(sigencore
+ sigcore
+ sigscript
+ )
+ENDIF (KDE4_FOUND)
+
IF (QCA2_FOUND)
ADD_SUBDIRECTORY(signet)
ENDIF (QCA2_FOUND)
diff --git a/sigencore/CMakeLists.txt b/sigencore/CMakeLists.txt
new file mode 100644
index 00000000..8b8c81e4
--- /dev/null
+++ b/sigencore/CMakeLists.txt
@@ -0,0 +1,63 @@
+PROJECT(sigencore)
+
+IF (NOT SIGEN_VERSION)
+ MESSAGE(FATAL_ERROR "Sigen version is not defined")
+ENDIF (NOT SIGEN_VERSION)
+
+SET(sigencore_HEADERS
+ Arena.h
+ Containment.h
+ Global.h
+ Player.h
+ Team.h
+ TeamMember.h
+)
+SET(sigencore_SRCS
+ Arena.cpp
+ Containment.cpp
+ Player.cpp
+ Team.cpp
+ TeamMember.cpp
+)
+
+KDE4_ADD_LIBRARY(sigencore
+ SHARED
+ ${sigencore_SRCS}
+)
+SET_TARGET_PROPERTIES(sigencore
+ PROPERTIES
+ VERSION ${SIGEN_VERSION}
+ SOVERSION ${SIGEN_SOVERSION}
+)
+TARGET_LINK_LIBRARIES(sigencore
+ ${QT_QTCORE_LIBRARY}
+ ${QT_QTGUI_LIBRARY}
+ ${KDE4_KROSSCORE_LIBRARY}
+ sigcore
+ sigscript
+)
+TARGET_LINK_LIBRARIES(sigencore LINK_INTERFACE_LIBRARIES
+ ${QT_QTCORE_LIBRARY}
+ sigcore
+ sigscript
+)
+
+INSTALL(
+ TARGETS
+ sigencore
+ EXPORT
+ sigen_EXPORTS
+ DESTINATION
+ ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}
+ COMPONENT
+ runtime
+)
+
+INSTALL(
+ FILES
+ ${sigencore_HEADERS}
+ DESTINATION
+ ${CMAKE_INSTALL_PREFIX}/include/${CMAKE_PROJECT_NAME}/${PROJECT_NAME}
+ COMPONENT
+ development
+)