Skip to content
This repository
Browse code

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
Andrew Walker authored

Showing 2 changed files with 48 additions and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  CMakeLists.txt
  2. +47 0 wkml/CMakeLists.txt
1  CMakeLists.txt
@@ -100,6 +100,7 @@ ADD_SUBDIRECTORY(utils)
100 100 ADD_SUBDIRECTORY(common)
101 101 ADD_SUBDIRECTORY(wxml)
102 102 ADD_SUBDIRECTORY(wcml)
  103 +ADD_SUBDIRECTORY(wkml)
103 104 ADD_SUBDIRECTORY(sax)
104 105 ADD_SUBDIRECTORY(dom)
105 106 ADD_SUBDIRECTORY(examples)
47 wkml/CMakeLists.txt
... ... @@ -0,0 +1,47 @@
  1 +# m_wkml_coverage.f90: m_wkml_coverage.m4
  2 +# m4 -I ../m4 $< > $@
  3 +IF(NOT ${M4_PROGRAM} MATCHES "NOTFOUND")
  4 + ADD_CUSTOM_COMMAND(
  5 + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.f90
  6 + COMMAND ${M4_PROGRAM} -I ../m4 ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.m4 > ${CMAKE_CURRENT_SOURCE_DIR}/m_wkml_coverage.f90
  7 + DEPENDS m_wkml_coverage.m4
  8 + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  9 + )
  10 +ENDIF(NOT ${M4_PROGRAM} MATCHES "NOTFOUND")
  11 +
  12 +set(fox_wcml_srcs
  13 + FoX_wkml.f90
  14 +)
  15 +
  16 +set(fox_wkml_srcs_pp
  17 + m_wkml_lowlevel.f90
  18 + m_wkml_color.f90
  19 + m_wkml_styling.f90
  20 + m_wkml_features.f90
  21 + m_wkml_coverage.f90
  22 + m_wkml_core.f90
  23 + m_wkml_contours.f90
  24 + m_contours.f90
  25 + m_wkml_color_def.f90
  26 + m_wkml_chart.f90
  27 +)
  28 +
  29 +add_library(
  30 + fox_wkml STATIC
  31 + ${fox_wkml_srcs}
  32 + ${fox_wkml_srcs_pp}
  33 +)
  34 +
  35 +target_link_libraries(
  36 + fox_wkml
  37 + fox_utils
  38 + fox_wxml
  39 +)
  40 +
  41 +include_directories(
  42 + ${fox_BINARY_DIR}/fsys
  43 + ${fox_BINARY_DIR}/utils
  44 + ${fox_BINARY_DIR}/wxml
  45 + ${fox_BINARY_DIR}/common
  46 +)
  47 +

0 comments on commit 98c44ac

Please sign in to comment.
Something went wrong with that request. Please try again.