aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom/toolchain-ow.cmake
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-10 21:42:25 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-10 21:42:25 +0300
commit0da7c26b10d362ffbb7b9d44d7add043f2d7192f (patch)
tree1aa0b0e3c3bb0f557488bdd8e4d35d74b2d9c736 /cmake/openwattcom/toolchain-ow.cmake
parent472cd580a2646d53a86c5bbdce890a3798754200 (diff)
downloadlibADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.gz
libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.tar.bz2
libADLMIDI-0da7c26b10d362ffbb7b9d44d7add043f2d7192f.zip
Incomplete attempt to provide support for OpenWattcom compiler
Yeah, I see it lacks A LOT OF things: std::vector lacks .data() member, std::map lacks .count() member, there is no any std::stringstream implementations, etc. SOLUTION: Try to use STLPort to provide missing STL support for this compiler
Diffstat (limited to 'cmake/openwattcom/toolchain-ow.cmake')
-rw-r--r--cmake/openwattcom/toolchain-ow.cmake40
1 files changed, 40 insertions, 0 deletions
diff --git a/cmake/openwattcom/toolchain-ow.cmake b/cmake/openwattcom/toolchain-ow.cmake
new file mode 100644
index 0000000..4f8b8f6
--- /dev/null
+++ b/cmake/openwattcom/toolchain-ow.cmake
@@ -0,0 +1,40 @@
+set (CMAKE_SYSTEM_NAME linux)
+
+set (OPENWATTCOM TRUE)
+
+set (WATCOM_PREFIX "/home/wohlstand/Qt/Tools/ow-snapshot-2.0")
+
+set (ENV{PATH} ${WATCOM_PREFIX}/binl:$ENV{PATH})
+set (ENV{WATCOM} ${WATCOM_PREFIX})
+set (ENV{INCLUDE} ${WATCOM_PREFIX}/lh)
+set (ENV{EDPATH} ${WATCOM_PREFIX}/eddat)
+set (ENV{WIPFC} ${WATCOM_PREFIX}/wipfc)
+
+# specify the cross compiler
+set (CMAKE_C_COMPILER ${WATCOM_PREFIX}/binl/owcc)
+set (CMAKE_CXX_COMPILER ${WATCOM_PREFIX}/binl/owcc)
+
+# where is the target environment
+set (CMAKE_FIND_ROOT_PATH ${WATCOM_PREFIX})
+
+# search for programs in the build host directories
+set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+# for libraries and headers in the target directories
+set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
+
+include_directories(${WATCOM_PREFIX}/lh)
+
+# Make sure Qt can be detected by CMake
+set (QT_BINARY_DIR ${WATCOM_PREFIX}/binl /usr/bin)
+set (QT_INCLUDE_DIRS_NO_SYSTEM ON)
+
+# These are needed for compiling lapack (RHBZ #753906)
+#set (CMAKE_Fortran_COMPILER /home/wohlstand/Qt/Tools/ow-snapshot-2.0/binl/wfc)
+#set (CMAKE_AR:FILEPATH /usr/local/djgpp/bin/i586-pc-msdosdjgpp-ar)
+#set (CMAKE_RANLIB:FILEPATH /usr/local/djgpp/bin/i586-pc-msdosdjgpp-ranlib)
+
+# include(Linux-OpenWatcom.cmake)
+
+