summaryrefslogtreecommitdiffstats
path: root/qmake/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'qmake/CMakeLists.txt')
-rw-r--r--qmake/CMakeLists.txt65
1 files changed, 65 insertions, 0 deletions
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
new file mode 100644
index 00000000..c4ebd483
--- /dev/null
+++ b/qmake/CMakeLists.txt
@@ -0,0 +1,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
+)