Register with network also on the PIN code path
[gregoa/zavai.git] / gtkfisheyelist / CMakeLists.txt
1 project(gtkfisheyelist)
2 include(../vala.cmake)
3
4 set(gtkfisheyelist_version 0.1)
5
6 set(VALA_PACKAGES gtk+-2.0)
7
8 add_packages(GFEL ${VALA_PACKAGES})
9
10 set(VFLAGS --vapidir=${gtkfisheyelist_BINARY_DIR})
11 add_definitions(-Wall -Werror -I${gtkfisheyelist_BINARY_DIR})
12
13
14 file(GLOB fevala gtkfisheye*.vala)
15 add_vala_library(gtkfisheyelist ${fevala})
16 add_library(gtkfisheyelist SHARED ${gtkfisheyelist_CSOURCES})
17 add_library(gtkfisheyelist-static STATIC ${gtkfisheyelist_CSOURCES})
18 set_target_properties(gtkfisheyelist PROPERTIES VERSION ${gtkfisheyelist_version} SOVERSION 0 CLEAN_DIRECT_OUTPUT 1)
19 set_target_properties(gtkfisheyelist-static PROPERTIES VERSION ${gtkfisheyelist_version} SOVERSION 0 OUTPUT_NAME "gtkfisheyelist" CLEAN_DIRECT_OUTPUT 1)
20
21 set(VALA_PACKAGES ${VALA_PACKAGES} gtkfisheyelist)
22 file(GLOB demovala demo*.vala)
23 add_vala_program(gtkfisheyedemo ${demovala})
24 add_executable(gtkfisheyedemo ${gtkfisheyedemo_CSOURCES})
25 target_link_libraries(gtkfisheyedemo gtkfisheyelist-static)
26
27 set(prefix "${CMAKE_INSTALL_PREFIX}")
28 set(exec_prefix "${prefix}/bin")
29 set(libdir "${prefix}/lib")
30 set(includedir "${prefix}/include")
31 configure_file(${gtkfisheyelist_SOURCE_DIR}/libgtkfisheyelist.pc.in ${gtkfisheyelist_BINARY_DIR}/libgtkfisheyelist.pc @ONLY)
32
33 #install(TARGETS gtkfisheyelist gtkfisheyelist-static
34 #  LIBRARY DESTINATION lib
35 #  ARCHIVE DESTINATION lib)
36
37 #install(FILES gtkfisheyelist.h DESTINATION include/gtkfisheyelist)
38
39 #install(FILES ${gtkfisheyelist_BINARY_DIR}/libgtkfisheyelist.pc DESTINATION lib/pkgconfig)
40