make the spec file look like a spec file, not tested
[duncan/yast2-qt4.git] / CMakeLists.txt
1 PROJECT(yast2-qt4)
2 SET( CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/share/cmake/Modules" ${CMAKE_MODULE_PATH} )
3
4 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -Wall -Woverloaded-virtual" )
5 SET( CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -g -O3 -Wall" )
6
7 SET( RPMNAME "yast2-qt4" )
8
9 FIND_PACKAGE(Qt4 REQUIRED)
10 FIND_PACKAGE(Yast REQUIRED)
11 INCLUDE(YastCommon)
12
13 SET(Y2QT_ICONDIR ${CMAKE_INSTALL_PREFIX}/share/YaST2/theme/current)
14 SET(Y2QT_LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
15 SET(Y2QT_THEMEDIR ${CMAKE_INSTALL_PREFIX}/share/YaST2/theme)
16
17 ADD_SUBDIRECTORY(src)
18