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
33 hlvariant/chess/variant.cpp
34 hlvariant/chess/san.cpp
35 hlvariant/chess/move.cpp
36 hlvariant/chess/gamestate.cpp
37 hlvariant/chess/piece.cpp
39 hlvariant/crazyhouse/variant.cpp
40 hlvariant/crazyhouse/piece.cpp
105 # remove spurious xpressive warnings
106 set_source_files_properties(icsconnection.cpp
107 PROPERTIES COMPILE_FLAGS -Wno-extra)
109 kde4_add_ui_files(tagua_SRC
118 ui/pref_theme_page.ui
125 ${Boost_INCLUDE_DIRS}
126 ${CMAKE_CURRENT_BINARY_DIR}
133 if(NOT DEFINED COMPILER_HAVE_X86_MMX)
134 check_cxx_source_compiles(" int main() { __asm__(\"pxor %mm0, %mm0\") ; }" COMPILER_HAVE_X86_MMX)
135 endif(NOT DEFINED COMPILER_HAVE_X86_MMX)
137 if(NOT DEFINED COMPILER_HAVE_X86_SSE2)
138 check_cxx_source_compiles(" int main() { __asm__(\"xorpd %xmm0, %xmm0\"); }" COMPILER_HAVE_X86_SSE2)
139 endif(NOT DEFINED COMPILER_HAVE_X86_SSE2)
141 if(COMPILER_HAVE_X86_MMX)
142 list(APPEND tagua_SRC imageeffects_mmx.cpp)
143 set_source_files_properties(imageeffects_mmx.cpp PROPERTIES COMPILE_FLAGS -mmmx)
144 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_MMX)
145 endif(COMPILER_HAVE_X86_MMX)
147 if(COMPILER_HAVE_X86_SSE2)
148 list(APPEND tagua_SRC imageeffects_sse.cpp)
149 set_source_files_properties(imageeffects_sse.cpp PROPERTIES COMPILE_FLAGS -msse2)
150 set_source_files_properties(imageeffects.cpp PROPERTIES COMPILE_FLAGS -DHAVE_X86_SSE2)
151 endif(COMPILER_HAVE_X86_SSE2)
154 set(TAGUA_TARGET taguaprivate)
156 kde4_add_library(taguaprivate SHARED ${tagua_SRC})
157 kde4_add_executable(tagua main.cpp)
159 set(TAGUA_TARGET tagua)
160 kde4_add_executable(tagua main.cpp ${tagua_SRC})
166 ${Boost_LIBRARY_DIRS}
167 ${CMAKE_BINARY_DIR}/lib
169 target_link_libraries(${TAGUA_TARGET}
178 target_link_libraries(tagua taguaprivate)
179 install(TARGETS taguaprivate DESTINATION ${LIB_INSTALL_DIR})
183 INSTALL(TARGETS tagua DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
184 install(FILES tagua.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
185 install(FILES taguaui.rc DESTINATION ${DATA_INSTALL_DIR}/tagua)