Radek Krejci | 5708fe6 | 2016-09-14 12:25:12 +0200 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 2.8.9) |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 2 | project(libyang C) |
| 3 | |
Jan Kundrát | 37df09e | 2016-11-04 15:42:08 +0100 | [diff] [blame] | 4 | include(GNUInstallDirs) |
| 5 | |
Michal Vasko | e5cf992 | 2015-11-11 11:06:40 +0100 | [diff] [blame] | 6 | set(LIBYANG_DESCRIPTION "libyang is YANG data modelling language parser and toolkit written (and providing API) in C.") |
| 7 | |
Radek Krejci | 8f7cf40 | 2015-08-13 08:05:48 +0200 | [diff] [blame] | 8 | # set version |
| 9 | set(LIBYANG_MAJOR_VERSION 0) |
Radek Krejci | b92cbde | 2016-12-14 16:44:56 +0100 | [diff] [blame] | 10 | set(LIBYANG_MINOR_VERSION 12) |
Michal Vasko | 6a8641f | 2017-03-24 11:24:21 +0100 | [diff] [blame^] | 11 | set(LIBYANG_MICRO_VERSION 130) |
Radek Krejci | 8f7cf40 | 2015-08-13 08:05:48 +0200 | [diff] [blame] | 12 | set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) |
| 13 | set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}) |
Radek Krejci | 60cdf28 | 2016-10-10 16:22:22 +0200 | [diff] [blame] | 14 | configure_file(${PROJECT_SOURCE_DIR}/src/libyang.h.in ${PROJECT_SOURCE_DIR}/src/libyang.h) |
Radek Krejci | 8f7cf40 | 2015-08-13 08:05:48 +0200 | [diff] [blame] | 15 | |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 16 | if(PLUGINS_DIR) |
| 17 | set(LIBYANG_EXT_PLUGINS_DIR ${PLUGINS_DIR}) |
| 18 | else() |
| 19 | set(LIBYANG_EXT_PLUGINS_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libyang) |
| 20 | endif() |
Radek Krejci | 858ad95 | 2017-01-04 11:16:32 +0100 | [diff] [blame] | 21 | configure_file(${PROJECT_SOURCE_DIR}/src/extensions_config.h.in ${PROJECT_SOURCE_DIR}/src/extensions_config.h) |
| 22 | |
Michal Vasko | e4e8fbd | 2015-08-24 14:54:49 +0200 | [diff] [blame] | 23 | # include custom Modules |
Radek Krejci | 977c1c8 | 2015-09-01 15:18:03 +0200 | [diff] [blame] | 24 | set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/") |
Michal Vasko | e4e8fbd | 2015-08-24 14:54:49 +0200 | [diff] [blame] | 25 | |
Pavol Vican | f7cc285 | 2016-03-22 23:27:35 +0100 | [diff] [blame] | 26 | find_package(FLEX) |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 27 | find_package(BISON) |
Pavol Vican | 0a9716f | 2016-05-22 17:04:06 +0200 | [diff] [blame] | 28 | find_program (SED_TOOL NAMES sed) |
Pavol Vican | f7cc285 | 2016-03-22 23:27:35 +0100 | [diff] [blame] | 29 | |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 30 | if(NOT BISON_FOUND) |
Radek Krejci | f19243b | 2017-02-02 09:23:40 +0100 | [diff] [blame] | 31 | message(WARNING "Missing Bison.\nYou won't be able to generate source codes from changed flex/bison files.\nCompiling libyang should still works fine.") |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 32 | elseif (NOT FLEX_FOUND) |
Radek Krejci | f19243b | 2017-02-02 09:23:40 +0100 | [diff] [blame] | 33 | message(WARNING "Missing Flex.\nYou won't be able to generate source codes from changed flex/bison files.\nCompiling libyang should still works fine.") |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 34 | else() |
| 35 | if (BISON_VERSION VERSION_LESS 3) |
| 36 | set(EMPTYDIR "") |
| 37 | else () |
| 38 | set(EMPTYDIR "%empty") |
| 39 | endif() |
| 40 | configure_file(${PROJECT_SOURCE_DIR}/src/yang.y.in ${PROJECT_SOURCE_DIR}/src/yang.y) |
| 41 | add_custom_target(bison |
Pavol Vican | 15bf384 | 2016-04-05 22:25:00 +0200 | [diff] [blame] | 42 | WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src |
PavolVican | 22e8868 | 2017-02-14 22:38:18 +0100 | [diff] [blame] | 43 | COMMAND bison -l -o parser_yang_bis.c --defines=parser_yang_bis.h yang.y |
Pavol Vican | 6ab09d8 | 2016-10-24 11:30:02 +0200 | [diff] [blame] | 44 | COMMAND flex -8 -L -o parser_yang_lex.c --header-file=parser_yang_lex.h yang.l |
PavolVican | 1985713 | 2017-03-01 09:47:47 +0100 | [diff] [blame] | 45 | COMMAND ${SED_TOOL} -i 's/int yychar\;/int yychar\;\\nchar *s = NULL, *tmp_s = NULL, *ext_name = NULL\;\\nstruct lys_module *trg = NULL\;\\nstruct lys_node *tpdf_parent = NULL, *data_node = NULL\;\\nstruct lys_ext_instance_complex *ext_instance = NULL\;\\nint is_ext_instance\;\\nvoid *actual = NULL\;\\nenum yytokentype backup_type, actual_type = MODULE_KEYWORD\;\\nint64_t cnt_val = 0\;\\nint is_value = 0\;\\nvoid *yang_type = NULL\;/' parser_yang_bis.c |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 46 | ) |
| 47 | endif() |
Pavol Vican | f7cc285 | 2016-03-22 23:27:35 +0100 | [diff] [blame] | 48 | |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 49 | # check the supported platform |
| 50 | if(NOT UNIX) |
| 51 | message(FATAL_ERROR "Only *nix like systems are supported.") |
| 52 | endif() |
| 53 | |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 54 | # set default build type if not specified by user |
| 55 | if(NOT CMAKE_BUILD_TYPE) |
| 56 | set(CMAKE_BUILD_TYPE debug) |
| 57 | endif() |
| 58 | |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 59 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra") |
Radek Krejci | 3045cf3 | 2015-05-28 10:58:52 +0200 | [diff] [blame] | 60 | set(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG") |
Radek Krejci | f19ac67 | 2016-02-05 16:16:36 +0100 | [diff] [blame] | 61 | set(CMAKE_C_FLAGS_DEBUG "-g -O0") |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 62 | |
Radek Krejci | 61cd556 | 2015-10-05 14:06:34 +0200 | [diff] [blame] | 63 | if(CMAKE_BUILD_TYPE STREQUAL debug) |
| 64 | option(ENABLE_BUILD_TESTS "Build tests" ON) |
| 65 | option(ENABLE_VALGRIND_TESTS "Build tests with valgrind" ON) |
| 66 | else() |
| 67 | option(ENABLE_BUILD_TESTS "Build tests" OFF) |
| 68 | option(ENABLE_VALGRIND_TESTS "Build tests with valgrind" OFF) |
| 69 | endif() |
Mislav Novakovic | 021b9a1 | 2015-10-01 20:50:21 +0200 | [diff] [blame] | 70 | |
Radek Krejci | 5a06554 | 2015-05-22 15:02:07 +0200 | [diff] [blame] | 71 | set(libsrc |
Radek Krejci | 9b4ca39 | 2015-04-10 08:31:27 +0200 | [diff] [blame] | 72 | src/common.c |
Radek Krejci | da04f4a | 2015-05-21 12:54:09 +0200 | [diff] [blame] | 73 | src/context.c |
Radek Krejci | 9b4ca39 | 2015-04-10 08:31:27 +0200 | [diff] [blame] | 74 | src/log.c |
Radek Krejci | ee62758 | 2015-04-20 17:39:59 +0200 | [diff] [blame] | 75 | src/dict.c |
Michal Vasko | c3d9f8c | 2015-07-31 14:37:24 +0200 | [diff] [blame] | 76 | src/resolve.c |
Radek Krejci | b1c1251 | 2015-08-11 11:22:04 +0200 | [diff] [blame] | 77 | src/validation.c |
Radek Krejci | da04f4a | 2015-05-21 12:54:09 +0200 | [diff] [blame] | 78 | src/xml.c |
Radek Krejci | b1c1251 | 2015-08-11 11:22:04 +0200 | [diff] [blame] | 79 | src/parser.c |
Radek Krejci | 998a0b8 | 2015-08-17 13:14:36 +0200 | [diff] [blame] | 80 | src/parser_yin.c |
| 81 | src/parser_xml.c |
Radek Krejci | 5449d47 | 2015-10-26 14:35:56 +0100 | [diff] [blame] | 82 | src/parser_json.c |
Pavol Vican | cae5488 | 2016-03-30 12:24:43 +0200 | [diff] [blame] | 83 | src/parser_yang_bis.c |
| 84 | src/parser_yang_lex.c |
Pavol Vican | f7cc285 | 2016-03-22 23:27:35 +0100 | [diff] [blame] | 85 | src/parser_yang.c |
Michal Vasko | 2d162e1 | 2015-09-24 14:33:29 +0200 | [diff] [blame] | 86 | src/tree_schema.c |
| 87 | src/tree_data.c |
Radek Krejci | 0aa821a | 2016-12-08 11:21:35 +0100 | [diff] [blame] | 88 | src/extensions.c |
Radek Krejci | efdd0ce | 2015-05-26 16:48:29 +0200 | [diff] [blame] | 89 | src/printer.c |
Michal Vasko | abbdaa0 | 2015-10-06 15:47:25 +0200 | [diff] [blame] | 90 | src/xpath.c |
Radek Krejci | 998a0b8 | 2015-08-17 13:14:36 +0200 | [diff] [blame] | 91 | src/printer_yang.c |
Michal Vasko | a63ca34 | 2016-02-05 14:29:19 +0100 | [diff] [blame] | 92 | src/printer_yin.c |
Michal Vasko | 9b9e4a0 | 2015-08-21 09:11:14 +0200 | [diff] [blame] | 93 | src/printer_xml.c |
Radek Krejci | 998a0b8 | 2015-08-17 13:14:36 +0200 | [diff] [blame] | 94 | src/printer_tree.c |
| 95 | src/printer_info.c |
| 96 | src/printer_json.c |
Radek Krejci | da04f4a | 2015-05-21 12:54:09 +0200 | [diff] [blame] | 97 | src/yang_types.c) |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 98 | |
Radek Krejci | 5a06554 | 2015-05-22 15:02:07 +0200 | [diff] [blame] | 99 | set(lintsrc |
Michal Vasko | f3e59f1 | 2015-06-18 11:53:56 +0200 | [diff] [blame] | 100 | tools/lint/main.c |
Radek Krejci | 797590b | 2016-10-10 16:23:04 +0200 | [diff] [blame] | 101 | tools/lint/main_ni.c |
Michal Vasko | f3e59f1 | 2015-06-18 11:53:56 +0200 | [diff] [blame] | 102 | tools/lint/commands.c |
Michal Vasko | e0cb252 | 2015-07-01 10:24:53 +0200 | [diff] [blame] | 103 | tools/lint/completion.c |
Michal Vasko | 203b4e7 | 2015-06-30 15:25:15 +0200 | [diff] [blame] | 104 | linenoise/linenoise.c) |
Radek Krejci | 5a06554 | 2015-05-22 15:02:07 +0200 | [diff] [blame] | 105 | |
Michal Vasko | 9a54274 | 2016-06-23 13:04:51 +0200 | [diff] [blame] | 106 | set(yang2yinsrc |
| 107 | tools/yang2yin/main.c) |
| 108 | |
Tomas Cejka | 422c007 | 2015-07-21 18:18:25 +0200 | [diff] [blame] | 109 | set(headers |
| 110 | src/libyang.h |
Michal Vasko | 2d162e1 | 2015-09-24 14:33:29 +0200 | [diff] [blame] | 111 | src/tree_schema.h |
Radek Krejci | c6704c8 | 2015-10-06 11:12:45 +0200 | [diff] [blame] | 112 | src/tree_data.h |
Radek Krejci | a1a6b76 | 2016-11-14 09:53:38 +0900 | [diff] [blame] | 113 | src/extensions.h |
Radek Krejci | 41912fe | 2015-10-22 10:22:12 +0200 | [diff] [blame] | 114 | src/xml.h |
| 115 | src/dict.h) |
Tomas Cejka | 422c007 | 2015-07-21 18:18:25 +0200 | [diff] [blame] | 116 | |
Abhi Keshav | 7afa081 | 2016-10-25 14:52:51 -0700 | [diff] [blame] | 117 | # create static libyang library |
| 118 | if(STATIC) |
| 119 | add_library(yang_static STATIC ${libsrc}) |
| 120 | set_target_properties(yang_static PROPERTIES OUTPUT_NAME yang) |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 121 | set_target_properties(yang_static PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") |
Abhi Keshav | 7afa081 | 2016-10-25 14:52:51 -0700 | [diff] [blame] | 122 | target_link_libraries(yang_static m) |
Radek Krejci | 858ad95 | 2017-01-04 11:16:32 +0100 | [diff] [blame] | 123 | target_link_libraries(yang_static ${CMAKE_DL_LIBS}) |
Abhi Keshav | 7afa081 | 2016-10-25 14:52:51 -0700 | [diff] [blame] | 124 | target_link_libraries(yang_static ${CMAKE_THREAD_LIBS_INIT}) |
| 125 | target_link_libraries(yang_static ${PCRE_LIBRARIES}) |
Radek Krejci | 4c79e70 | 2016-11-06 13:00:20 +0100 | [diff] [blame] | 126 | install(TARGETS yang_static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
Abhi Keshav | 7afa081 | 2016-10-25 14:52:51 -0700 | [diff] [blame] | 127 | endif(STATIC) |
| 128 | |
Radek Krejci | 5708fe6 | 2016-09-14 12:25:12 +0200 | [diff] [blame] | 129 | set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) |
| 130 | add_library(yangobj OBJECT ${libsrc}) |
| 131 | add_library(yang SHARED $<TARGET_OBJECTS:yangobj>) |
Radek Krejci | 8f7cf40 | 2015-08-13 08:05:48 +0200 | [diff] [blame] | 132 | set_target_properties(yang PROPERTIES VERSION ${LIBYANG_VERSION} SOVERSION ${LIBYANG_SOVERSION}) |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 133 | set_target_properties(yang PROPERTIES COMPILE_FLAGS "-fvisibility=hidden") |
Michal Vasko | e4e8fbd | 2015-08-24 14:54:49 +0200 | [diff] [blame] | 134 | |
Radek Krejci | 89658b3 | 2016-02-08 11:14:46 +0100 | [diff] [blame] | 135 | # link math |
| 136 | target_link_libraries(yang m) |
| 137 | |
Radek Krejci | 858ad95 | 2017-01-04 11:16:32 +0100 | [diff] [blame] | 138 | #link dl |
| 139 | target_link_libraries(yang ${CMAKE_DL_LIBS}) |
| 140 | |
Radek Krejci | 7d9f46a | 2016-01-29 13:53:18 +0100 | [diff] [blame] | 141 | # find pthreads |
| 142 | set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
| 143 | find_package(Threads REQUIRED) |
| 144 | target_link_libraries(yang ${CMAKE_THREAD_LIBS_INIT}) |
| 145 | |
Michal Vasko | e4e8fbd | 2015-08-24 14:54:49 +0200 | [diff] [blame] | 146 | # find PCRE library |
| 147 | find_package(PCRE REQUIRED) |
| 148 | include_directories(${PCRE_INCLUDE_DIRS}) |
Radek Krejci | 1d949ec | 2015-10-02 13:35:05 +0200 | [diff] [blame] | 149 | target_link_libraries(yang ${PCRE_LIBRARIES}) |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 150 | |
Jan Kundrát | bffd9e4 | 2016-11-04 16:33:49 +0100 | [diff] [blame] | 151 | install(TARGETS yang DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
| 152 | install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libyang) |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 153 | |
Michal Vasko | e5cf992 | 2015-11-11 11:06:40 +0100 | [diff] [blame] | 154 | find_package(PkgConfig) |
| 155 | if(PKG_CONFIG_FOUND) |
| 156 | # generate and install pkg-config file |
| 157 | configure_file("libyang.pc.in" "libyang.pc" @ONLY) |
Jan Kundrát | bffd9e4 | 2016-11-04 16:33:49 +0100 | [diff] [blame] | 158 | install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libyang.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") |
Michal Vasko | 98ae1e1 | 2015-12-15 11:11:28 +0100 | [diff] [blame] | 159 | # check that pkg-config includes the used path |
| 160 | execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable pc_path pkg-config RESULT_VARIABLE RETURN OUTPUT_VARIABLE PC_PATH ERROR_QUIET) |
| 161 | if(RETURN EQUAL 0) |
Jan Kundrát | bffd9e4 | 2016-11-04 16:33:49 +0100 | [diff] [blame] | 162 | string(REGEX MATCH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig" SUBSTR "${PC_PATH}") |
Michal Vasko | 33c001c | 2016-02-11 09:01:52 +0100 | [diff] [blame] | 163 | string(LENGTH "${SUBSTR}" SUBSTR_LEN) |
Michal Vasko | b8d90a3 | 2016-02-09 13:59:42 +0100 | [diff] [blame] | 164 | if(SUBSTR_LEN EQUAL 0) |
Jan Kundrát | bffd9e4 | 2016-11-04 16:33:49 +0100 | [diff] [blame] | 165 | message(WARNING "pkg-config will not detect the new package after installation, adjust PKG_CONFIG_PATH using \"export PKG_CONFIG_PATH=\${PKG_CONFIG_PATH}:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig\".") |
Michal Vasko | 98ae1e1 | 2015-12-15 11:11:28 +0100 | [diff] [blame] | 166 | endif() |
| 167 | endif() |
Michal Vasko | e5cf992 | 2015-11-11 11:06:40 +0100 | [diff] [blame] | 168 | endif() |
| 169 | |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 170 | # generate doxygen documentation for libyang API |
Radek Krejci | e262609 | 2015-10-08 11:25:44 +0200 | [diff] [blame] | 171 | find_package(Doxygen) |
| 172 | if(DOXYGEN_FOUND) |
| 173 | set(DOXYGEN_SKIP_DOT TRUE) |
| 174 | add_custom_target(doc |
| 175 | COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile |
| 176 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
| 177 | configure_file(Doxyfile.in Doxyfile) |
| 178 | endif() |
Radek Krejci | e74ea8c | 2015-04-09 18:06:20 +0200 | [diff] [blame] | 179 | |
| 180 | # clean cmake cache |
| 181 | add_custom_target(cclean |
Radek Krejci | 25155ac | 2015-10-08 11:26:20 +0200 | [diff] [blame] | 182 | COMMAND make clean |
| 183 | COMMAND find . -iname '*cmake*' -not -name CMakeLists.txt -not -path './CMakeModules*' -exec rm -rf {} + |
| 184 | COMMAND rm -rf Makefile Doxyfile |
| 185 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
Radek Krejci | 2cb3054 | 2015-04-10 08:33:57 +0200 | [diff] [blame] | 186 | |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 187 | # YANG extensions plugins |
| 188 | add_subdirectory(src/extensions) |
| 189 | |
| 190 | # yanglint |
Radek Krejci | 5a06554 | 2015-05-22 15:02:07 +0200 | [diff] [blame] | 191 | add_executable(yanglint ${lintsrc}) |
Radek Krejci | 1d949ec | 2015-10-02 13:35:05 +0200 | [diff] [blame] | 192 | target_link_libraries(yanglint yang) |
Jan Kundrát | bffd9e4 | 2016-11-04 16:33:49 +0100 | [diff] [blame] | 193 | install(TARGETS yanglint DESTINATION ${CMAKE_INSTALL_BINDIR}) |
| 194 | install(FILES ${PROJECT_SOURCE_DIR}/tools/lint/yanglint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) |
Radek Krejci | 5a06554 | 2015-05-22 15:02:07 +0200 | [diff] [blame] | 195 | |
Radek Krejci | c43058d | 2017-01-04 16:29:58 +0100 | [diff] [blame] | 196 | # yang2yin |
Michal Vasko | 9a54274 | 2016-06-23 13:04:51 +0200 | [diff] [blame] | 197 | add_executable(yang2yin ${yang2yinsrc}) |
| 198 | |
Mislav Novakovic | 021b9a1 | 2015-10-01 20:50:21 +0200 | [diff] [blame] | 199 | if(ENABLE_VALGRIND_TESTS) |
| 200 | set(ENABLE_BUILD_TESTS ON) |
| 201 | endif() |
| 202 | |
| 203 | if(ENABLE_BUILD_TESTS) |
Radek Krejci | e02ce0a | 2015-11-04 14:14:20 +0100 | [diff] [blame] | 204 | find_package(CMocka 1.0.0) |
| 205 | if(CMOCKA_FOUND) |
| 206 | enable_testing() |
| 207 | add_subdirectory(tests) |
| 208 | endif(CMOCKA_FOUND) |
| 209 | endif(ENABLE_BUILD_TESTS) |
Mislav Novakovic | a827b5f | 2016-02-29 11:47:22 +0100 | [diff] [blame] | 210 | |
| 211 | if(JAVASCRIPT_BINDING) |
| 212 | include(swig/javascript/CMakeLists.txt) |
| 213 | endif() |