Skip to content

Commit 0cd6f21

Browse files
committed
Added libs for Tcl and Python
1 parent f6bdbec commit 0cd6f21

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ if(MYSQL_FOUND)
149149
)
150150
endif()
151151

152+
153+
152154
enable_testing()
153155

154156
set(TEST_SRCS
@@ -258,6 +260,33 @@ if(BUILD_STANDALONE)
258260
infoLoggerD-s
259261
pthread
260262
)
263+
264+
# Library for Python
265+
if (PYTHONLIBS_FOUND)
266+
add_library (infoLoggerForPython SHARED
267+
src/infoLoggerForPython_wrap.cxx
268+
${INFOLOGGER_STANDALONE_OBJ}
269+
)
270+
target_include_directories(
271+
infoLoggerForPython PUBLIC
272+
${PYTHON_INCLUDE_PATH}
273+
)
274+
set_target_properties(infoLoggerForPython PROPERTIES PREFIX "_")
275+
endif ()
276+
277+
# Library for Tcl
278+
if (TCL_FOUND)
279+
add_library (infoLoggerForTcl SHARED
280+
src/infoLoggerForTcl_wrap.cxx
281+
${INFOLOGGER_STANDALONE_OBJ}
282+
)
283+
target_include_directories(
284+
infoLoggerForTcl PUBLIC
285+
${TCL_INCLUDE_PATH}
286+
)
287+
set_target_properties(infoLoggerForTcl PROPERTIES PREFIX "_")
288+
endif ()
289+
261290
add_executable(
262291
infoLoggerServer-s
263292
src/infoLoggerServer.cxx

0 commit comments

Comments
 (0)