2 controllers/editgame.cpp
3 controllers/abstract.cpp
4 controllers/editposition.cpp
13 luaapi/genericwrapper.cpp
18 entities/gameentity.cpp
19 entities/userentity.cpp
20 entities/examinationentity.cpp
22 entities/engineentity.cpp
23 entities/icsentity.cpp
26 variants/xchess/move.cpp
27 variants/xchess/piece.cpp
30 variants/crazyhouse.cpp
95 # remove spurious xpressive warnings
96 set_source_files_properties(icsconnection.cpp
97 PROPERTIES COMPILE_FLAGS -Wno-extra)
99 kde4_add_ui_files(tagua_SRC
108 ui/pref_theme_page.ui
115 ${Boost_INCLUDE_DIRS}
116 ${CMAKE_CURRENT_BINARY_DIR}
123 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
124 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
125 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
127 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
128 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
129 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
131 if(COMPILER_HAVE_X86_MMX)
132 list(APPEND tagua_SRC imageeffects_mmx.cpp)
133 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
134 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
135 endif(COMPILER_HAVE_X86_MMX)
137 if(COMPILER_HAVE_X86_SSE2)
138 list(APPEND tagua_SRC imageeffects_sse.cpp)
139 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
140 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
141 endif(COMPILER_HAVE_X86_SSE2)
144 set(TAGUA_TARGET taguaprivate)
146 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
147 kde4_add_executable(tagua main.cpp)
149 set(TAGUA_TARGET tagua)
150 kde4_add_executable(tagua main.cpp ${tagua_SRC})
156 ${Boost_LIBRARY_DIRS}
157 ${CMAKE_BINARY_DIR}/lib
159 target_link_libraries(${TAGUA_TARGET}
168 target_link_libraries(tagua taguaprivate)
169 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
173 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
174 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
175 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)