--- /dev/null
+message(STATUS "Configuring allParam/tcl...")
+
+find_package(TCL QUIET)
+if(NOT TCL_FOUND)
+ message(FATAL_ERROR "TCL is required, forgot to install the -dev package?")
+endif()
+include_directories(${TCL_INCLUDE_PATH})
+
+add_library(tclParam STATIC "tcl/tclParam.c")
+#target_link_libraries(tclParam ${TCL_LIBRARY})
+
+# don't know if the threads enabled lib
+# is needed at all... but it's easy with cmake ^-^
+set(CMAKE_THREAD_PREFER_PTHREAD "ON")
+find_package(Threads QUIET)
+if(Threads_FOUND)
+ add_library(tclParam_p STATIC "tcl/tclParam.c")
+ set_target_properties(tclParam_p PROPERTIES COMPILE_DEFINITIONS PTHREADS)
+ #target_link_libraries(tclParam_p ${TCL_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
+endif()
+