blob: c4ebd483dc2a8cc3e4b10203aa6315e1652831e9 (
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
61
62
63
64
65
|
add_subdirectory( generators )
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/qmake/generators
${CMAKE_SOURCE_DIR}/qmake/generators/unix
${CMAKE_SOURCE_DIR}/qmake/generators/win32
${CMAKE_SOURCE_DIR}/qmake/generators/mac
${CMAKE_SOURCE_DIR}/mkspecs/linux-g++-64
${CMAKE_BINARY_DIR}/include
)
link_directories()
remove_definitions( -DTQT_THREAD_SUPPORT )
##### tqmake-kernel (static)
set( target tqmake-kernel )
set( _SRC_ ${CMAKE_SOURCE_DIR}/src/kernel/qurl.cpp )
tde_add_library( ${target} STATIC_PIC
SOURCES
${_SRC_}
DEPENDENCIES
tqt-includes
)
##### tqmake (executable)
set( target tqmake )
set( _SRC_ project.cpp
property.cpp
meta.cpp
main.cpp
qtmd5.cpp
option.cpp
)
tde_add_executable( ${target}
SOURCES
${_SRC_}
LINK
tqmake-kernel-static
generators-static
mac-generator-static
unix-generator-static
win32-generator-static
DESTINATION ${BIN_INSTALL_DIR}
DEPENDENCIES
tqt-includes
)
set_property( TARGET ${target}
APPEND PROPERTY COMPILE_DEFINITIONS
HAVE_QCONFIG_CPP
)
|