Skip to content

Commit

Permalink
refactoring meta examples to be part of the test build; fixed some di…
Browse files Browse the repository at this point in the history
…rectory issues
  • Loading branch information
karlnapf authored and vigsterkr committed Mar 10, 2016
1 parent 9339f1a commit c29bb3a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
23 changes: 22 additions & 1 deletion examples/meta/CMakeLists.txt
Expand Up @@ -16,4 +16,25 @@ add_custom_target(meta_examples
-t ${CMAKE_CURRENT_SOURCE_DIR}/generator/targets
COMMENT "Generating examples from meta-language")

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/targets)
# If testing is enabled we run the examples
IF(ENABLE_TESTING)
# Python
IF (PythonModular AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/python)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/python)
ENDIF()

# java
IF (JavaModular AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/java)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/java)
ENDIF()

# octave
IF (OctaveModular AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/octave)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/octave)
ENDIF()

# r
IF (RModular AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/r)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/r)
ENDIF()
ENDIF()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions examples/meta/targets/CMakeLists.txt

This file was deleted.

0 comments on commit c29bb3a

Please sign in to comment.