wrong character in the GSM 03.38 table (ç for Ç)
[gammu.git] / helper / CMakeLists.txt
blob0658d9b728041342a50ac79d195e6de720b651d3
1 # cmake <http://www.cmake.org> build file for Gammu
2 # Copyright (c) 2009 Michal Cihar
3 # vim: expandtab sw=4 ts=4 sts=4:
5 project (gammu-helper C)
7 include(GammuTuneCompiler)
8 include(GammuTuneFlags)
10 include_directories (
11     "${CMAKE_CURRENT_BINARY_DIR}/../include"
12     )
14 add_library(string STATIC string.c)
15 GAMMU_TUNE_SHARED(string)
17 add_library(array STATIC array.c)
18 GAMMU_TUNE_SHARED(array)
20 add_library (printing STATIC printing.c)
21 GAMMU_TUNE_SHARED(printing)
23 add_library (cmdline STATIC cmdline.c)
24 GAMMU_TUNE_SHARED(cmdline)
25 target_link_libraries (cmdline printing)
27 add_library (memorydisplay STATIC memory-display.c)
28 GAMMU_TUNE_SHARED(memorydisplay)
29 target_link_libraries (memorydisplay libGammu)
31 add_library (messagecmdline STATIC message-cmdline.c)
32 GAMMU_TUNE_SHARED(messagecmdline)
33 target_link_libraries (messagecmdline libGammu)
34 target_link_libraries (messagecmdline printing)
35 target_link_libraries (messagecmdline string)
36 target_link_libraries (messagecmdline cmdline)
38 add_library (messagedisplay STATIC message-display.c)
39 GAMMU_TUNE_SHARED(messagedisplay)
40 target_link_libraries (messagedisplay libGammu)
41 target_link_libraries (messagedisplay memorydisplay)
43 # Tune options for found libraries
44 if (LIBINTL_LIB_FOUND AND LIBINTL_LIBRARIES)
45     target_link_libraries (messagedisplay ${LIBINTL_LIBRARIES})
46     target_link_libraries (printing ${LIBINTL_LIBRARIES})
47     include_directories (${LIBINTL_INCLUDE_DIR})
48 endif (LIBINTL_LIB_FOUND AND LIBINTL_LIBRARIES)
50 if(WIN32 AND NOT CMAKE_COMPILER_IS_MINGW AND NOT CMAKE_COMPILER_IS_CYGWIN)
51     add_library(win32dirent STATIC win32-dirent.c)
52 endif(WIN32 AND NOT CMAKE_COMPILER_IS_MINGW AND NOT CMAKE_COMPILER_IS_CYGWIN)
54 if (NOT HAVE_STRPTIME)
55     add_library(strptime STATIC strptime.c)
56     GAMMU_TUNE_SHARED(strptime)
57     target_link_libraries (strptime string)
58 endif (NOT HAVE_STRPTIME)