/+junk/libgego

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/libgego

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Gustav Hartvigsson
  • Date: 2015-07-08 18:18:59 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150708181859-ucfoiovjdjoh9pfc
* CleanUp of CMakeLists.txt
* Added FindGIO.cmake (for good messure)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
set (GLIB_REQUIRED 2.26)
8
8
 
9
9
find_package (GLIB)
10
 
#find_package (GObject)
11
10
find_package (GObjectIntrospection)
12
11
find_package (LibSoup2)
13
 
message ("GLIB2_CFLAGS:" ${GLIB2_CFLAGS})
 
12
find_package (GIO)
 
13
 
 
14
 
 
15
if (NOT GLIB2_FOUND)
 
16
  message (FATAL_ERROR "Could not find GLib2. This is required for compiling LibGego.")
 
17
else ()
 
18
  message ("GLib2 Found")
 
19
endif ()
 
20
 
 
21
if (NOT GIO_FOUND)
 
22
  message (FATAL_ERROR "Could not find GIO. This is required for compiling LibGego.")
 
23
else ()
 
24
  message ("GIO Found.")
 
25
endif()
 
26
 
 
27
if (NOT LIBSOUP2_FOUND)
 
28
  message (FATAL_ERROR "LibSoup is not installed. This is required for compiling of LibGego.")
 
29
else ()
 
30
  message ("LibSoup2 Found.")
 
31
endif ()
14
32
 
15
33
#
16
34
# Pull in GLib. Verison number is arbitrary, A miminum of 2.30 should do it.
17
35
# And add it to the build thingy.
18
 
include_directories (${GLIB2_CFLAGS} ${LIBSOUP24_INCLUDE_DIRS})
19
 
list (APPEND LIBS ${GLIB2_LIBRARIES} ${LIBSOUP24_LIBRARIES})
20
 
add_definitions(${GLIB2_CFLAGS})
21
 
 
22
 
 
23
 
if (NOT LIBSOUP2_FOUND)
24
 
  message (FATAL_ERROR "LibSoup is not installed. This is required for compiling of LibGego.")
25
 
else ()
26
 
  message ("LibSoup2 is installed.")
27
 
endif ()
 
36
include_directories (${GLIB2_CFLAGS} ${GIO_INCLUDE_DIR} ${LIBSOUP24_INCLUDE_DIRS})
 
37
list (APPEND LIBS ${GLIB2_LIBRARIES} ${GIO_LIBRARIES} ${LIBSOUP24_LIBRARIES})
28
38
 
29
39
add_subdirectory (src)
30
40
 
42
52
  
43
53
  set (gego_0_0_gir_INCLUDES GLib-2.0 Soup-2.4)
44
54
  set (gego_0_0_gir_LIBS gego)
45
 
  set (gego_0_0_gir_CFLAGS ${GLIB2_CFLAGS} ${LIBSOUP2_LIBRARIES})
 
55
  set (gego_0_0_gir_CFLAGS ${LIBS})
46
56
  
47
57
  set (gego_0_0_gir_FILES ${GEGO_SRC})
48
58
  set (gego_0_0_gir_SCANNERFLAGS --c-include=libgego.h)