2 set(BUILTINVARIANTS_SRC variantfactories/builtinvariants.cpp)
3 set(TAGUA_BUILTIN_VARIANTS taguavariants)
4 add_definitions(-DTAGUA_MONOLITH)
6 set(BUILTINVARIANTS_SRC )
7 set(TAGUA_BUILTIN_VARIANTS )
11 controllers/editgame.cpp
12 controllers/abstract.cpp
13 controllers/editposition.cpp
14 controllers/entitytoken.cpp
23 luaapi/genericwrapper.cpp
28 entities/gameentity.cpp
29 entities/userentity.cpp
30 entities/examinationentity.cpp
32 entities/engineentity.cpp
33 entities/icsentity.cpp
35 variantfactories/kdepluginvariants.cpp
36 ${BUILTINVARIANTS_SRC}
102 # remove spurious xpressive warnings
103 set_source_files_properties(icsconnection.cpp
104 PROPERTIES COMPILE_FLAGS -Wno-extra)
106 kde4_add_ui_files(tagua_SRC
115 ui/pref_theme_page.ui
122 ${Boost_INCLUDE_DIRS}
124 ${CMAKE_CURRENT_BINARY_DIR}
131 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
132 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
133 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
135 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
136 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
137 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
139 if(COMPILER_HAVE_X86_MMX)
140 list(APPEND tagua_SRC imageeffects_mmx.cpp)
141 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
142 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
143 endif(COMPILER_HAVE_X86_MMX)
145 if(COMPILER_HAVE_X86_SSE2)
146 list(APPEND tagua_SRC imageeffects_sse.cpp)
147 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
148 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
149 endif(COMPILER_HAVE_X86_SSE2)
152 set(TAGUA_TARGET taguaprivate)
154 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
155 target_link_libraries(taguaprivate
156 ${TAGUA_BUILTIN_VARIANTS})
157 kde4_add_executable(tagua main.cpp)
159 set(TAGUA_TARGET tagua)
160 kde4_add_executable(tagua main.cpp ${tagua_SRC})
163 add_subdirectory(core)
164 add_subdirectory(variants)
168 ${Boost_LIBRARY_DIRS}
169 ${CMAKE_BINARY_DIR}/lib
171 target_link_libraries(${TAGUA_TARGET}
184 target_link_libraries(tagua taguaprivate)
185 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
189 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
190 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
191 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)