remove excessive logging
[duncan/yast2-ruby-bindings.git] / CMakeLists.txt
1 PROJECT(yast2-ruby-bindings)
2 SET(RPMNAME "yast2-ruby-bindings")
3 SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3 -Wall -Woverloaded-virtual" )
4 SET( CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}   -g -O3 -Wall" )
5
6 FIND_PROGRAM(SWIG_EXECUTABLE
7   NAMES swig-1.3 swig
8   PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin /usr/local/bin ${CMAKE_INSTALL_PREFIX}/bin
9 )
10
11 IF ( NOT SWIG_EXECUTABLE )
12   MESSAGE( FATAL "SWIG not found." )
13 ELSE ( NOT SWIG_EXECUTABLE )
14   MESSAGE( STATUS "SWIG found at ${SWIG_EXECUTABLE}" )
15 ENDIF ( NOT SWIG_EXECUTABLE )
16
17 FIND_PACKAGE(Yast REQUIRED)
18 INCLUDE(YastCommon)
19
20
21 FIND_PACKAGE(Ruby REQUIRED)
22
23 #RUBY_RUBY_LIB_PATH
24 MESSAGE( STATUS "Ruby vendor arch dir: ${RUBY_VENDORARCH_DIR}" )
25
26 ADD_SUBDIRECTORY(src)