diff options
Diffstat (limited to 'bindings/tutorial/CMakeLists.txt')
-rw-r--r-- | bindings/tutorial/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bindings/tutorial/CMakeLists.txt b/bindings/tutorial/CMakeLists.txt index 844e2dfb..62775f2c 100644 --- a/bindings/tutorial/CMakeLists.txt +++ b/bindings/tutorial/CMakeLists.txt @@ -19,8 +19,8 @@ #INCLUDE_DIRECTORIES(${include_dirs}) -MACRO(tuto num) - ADD_LIBRARY(tuto-${num} MODULE tuto-${num}.c) +MACRO(tuto num ext) + ADD_LIBRARY(tuto-${num} MODULE tuto-${num}.${ext}) SET_TARGET_PROPERTIES(tuto-${num} PROPERTIES PREFIX "" LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map" @@ -28,5 +28,7 @@ MACRO(tuto num) TARGET_LINK_LIBRARIES(tuto-${num} ${link_libraries}) ENDMACRO(tuto) -tuto(1) -tuto(2) + +tuto(1 c) +tuto(2 c) +tuto(3 cpp) |