summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
blob: b1399efc27eb86c4c22f2be37ecaf02a18f1cbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
###########################################
#                                         #
#  Improvements and feedback are welcome  #
#                                         #
#  This file is released under GPL >= 3   #
#                                         #
###########################################

# required stuff
find_package( TQt )

tde_setup_architecture_flags( )

include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)

tde_setup_largefiles( )


##### check for gcc visibility support

if( WITH_GCC_VISIBILITY )
  tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )


##### Look for tqt3 plugins location

execute_process(
    COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=pluginsdir
    OUTPUT_VARIABLE _pluginsdir
    RESULT_VARIABLE _result
    OUTPUT_STRIP_TRAILING_WHITESPACE
)
set( TQT_PLUGINS_DIR ${_pluginsdir} )
message( STATUS "TQT plugins directory: ${TQT_PLUGINS_DIR}" )


##### Look for tqt3 translations location

execute_process(
    COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=translationsdir
    OUTPUT_VARIABLE _translationsdir
    RESULT_VARIABLE _result
    OUTPUT_STRIP_TRAILING_WHITESPACE
)
set( TQT_TRANSLATIONS_DIR ${_translationsdir} )
message( STATUS "TQT translation directory: ${TQT_TRANSLATIONS_DIR}" )


##### Look for tqt3 includes location

execute_process(
    COMMAND ${PKG_CONFIG_EXECUTABLE} tqt-mt --variable=includedir
    OUTPUT_VARIABLE _includedir
    RESULT_VARIABLE _result
    OUTPUT_STRIP_TRAILING_WHITESPACE
)
set( TQT_INCLUDES_DIR ${_includedir} )
message( STATUS "TQT include directory: ${TQT_INCLUDES_DIR}" )