Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wkml/build: Permit CMake to build wkml too.

This seems to work for cmake builds ending in a make and make -j 8.
  • Loading branch information...
commit 98c44ac9f67e4c43ca13ca2e8436d5fa14c2bb67 1 parent d64321a
@andreww authored
Showing with 48 additions and 0 deletions.
  1. +1 −0  CMakeLists.txt
  2. +47 −0 wkml/CMakeLists.txt
View
1  CMakeLists.txt
@@ -100,6 +100,7 @@ ADD_SUBDIRECTORY(utils)
ADD_SUBDIRECTORY(common)
ADD_SUBDIRECTORY(wxml)
ADD_SUBDIRECTORY(wcml)
+ADD_SUBDIRECTORY(wkml)
ADD_SUBDIRECTORY(sax)
ADD_SUBDIRECTORY(dom)
ADD_SUBDIRECTORY(examples)
View
47 wkml/CMakeLists.txt
@@ -0,0 +1,47 @@
+# m_wkml_coverage.f90: m_wkml_coverage.m4
+# m4 -I ../m4 $< > $@
+IF(NOT ${M4_PROGRAM} MATCHES "NOTFOUND")
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.f90
+ COMMAND ${M4_PROGRAM} -I ../m4 ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.m4 > ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.f90
+ DEPENDS m_wkml_coverage.m4
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ )
+ENDIF(NOT ${M4_PROGRAM} MATCHES "NOTFOUND")
+
+set(fox_wcml_srcs
+ FoX_wkml.f90
+)
+
+set(fox_wkml_srcs_pp
+ m_wkml_lowlevel.f90
+ m_wkml_color.f90
+ m_wkml_styling.f90
+ m_wkml_features.f90
+ m_wkml_coverage.f90
+ m_wkml_core.f90
+ m_wkml_contours.f90
+ m_contours.f90
+ m_wkml_color_def.f90
+ m_wkml_chart.f90
+)
+
+add_library(
+ fox_wkml STATIC
+ ${fox_wkml_srcs}
+ ${fox_wkml_srcs_pp}
+)
+
+target_link_libraries(
+ fox_wkml
+ fox_utils
+ fox_wxml
+)
+
+include_directories(
+ ${fox_BINARY_DIR}/fsys
+ ${fox_BINARY_DIR}/utils
+ ${fox_BINARY_DIR}/wxml
+ ${fox_BINARY_DIR}/common
+)
+
Please sign in to comment.
Something went wrong with that request. Please try again.