A pyrimidone derivative represented by formula (I) or a salt thereof, or a solvate thereof or a hydrate thereof are disclosed and claimed.Wherein m, n, o, Y, Z, R1, R2, R3, R4, R5 R6 and R7 are as described herein. Also disclosed are the salts of compounds of formula (I). The invention relates also to a medicament comprising the said derivative or a salt thereof as an active ingredient which is used for preventive and/or therapeutic treatment of a neurodegenerative disease caused by abnormal activity of GSK3β, such as Alzheimer disease.