You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.2 KiB
65 lines
1.2 KiB
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_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
|
|
)
|