Skip to content

Commit 918d1e6

Browse files
committed
cmake: check examples
1 parent 30aba4b commit 918d1e6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ ADD_HEADER_GROUP(${PROJECT_NAME}_HEADERS)
116116
ADD_SOURCE_GROUP(${PROJECT_NAME}_SOURCES)
117117

118118
ADD_SUBDIRECTORY(python)
119+
ADD_SUBDIRECTORY(example)
119120

120121
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
121122
PKG_CONFIG_APPEND_CFLAGS("-I${PYTHON_INCLUDE_DIRS}")

example/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ADD_PYTHON_UNIT_TEST("add_eq" "example/add_eq.py" "python")
2+
ADD_PYTHON_UNIT_TEST("cppad_type" "example/cppad_type.py" "python")

0 commit comments

Comments
 (0)