+set(CMAKE_POSITION_INDEPENDENT_CODE 1)
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories("${CMAKE_SOURCE_DIR}/include")
add_subdirectory(string)
add_subdirectory(xml)
-add_library(etclib SHARED
+add_library(etclib
etclib.c
etclib.h
)
-add_library(filematch SHARED
+add_library(filematch
filematch.c
filematch.h
)
-
-add_library(cmdlib SHARED
+add_library(cmdlib
cmdlib.cpp
)
-add_library(container SHARED
+add_library(container
array.cpp
array.h
cache.cpp
-
-add_library(ddslib SHARED
+add_library(ddslib
ddslib.c
)
-
-add_library(debugging SHARED
+add_library(debugging
debugging.cpp
debugging.h
)
-
-add_library(generic SHARED
+add_library(generic
arrayrange.cpp
arrayrange.h
bitfield.cpp
-
-add_library(gtkutil SHARED
+add_library(gtkutil
accelerator.cpp
accelerator.h
button.cpp
-
set(L_NETLIST
l_net.c
l_net.h
else()
set(L_NETLIST ${L_NETLIST} l_net_berkley.c)
endif()
-add_library(l_net SHARED ${L_NETLIST})
+add_library(l_net ${L_NETLIST})
if(WIN32)
target_link_libraries(l_net ws2_32)
endif()
-
-add_library(math SHARED
+add_library(math
aabb.cpp
aabb.h
curve.cpp
-
-add_library(mathlib SHARED
+add_library(mathlib
bbox.c
line.c
m4x4.c
-
-add_library(md5lib SHARED
+add_library(md5lib
md5lib.c
)
-
-add_library(memory SHARED
+add_library(memory
allocator.cpp
allocator.h
)
-
-add_library(modulesystem SHARED
+add_library(modulesystem
moduleregistry.cpp
moduleregistry.h
modulesmap.cpp
-
-add_library(os SHARED
+add_library(os
dir.cpp
dir.h
file.cpp
-
-add_library(picomodel SHARED
+add_library(picomodel
lwo/clip.c
lwo/envelope.c
lwo/list.c
-
-add_library(profile SHARED
+add_library(profile
file.cpp
file.h
profile.cpp
-
-add_library(script SHARED
+add_library(script
scripttokeniser.cpp
scripttokeniser.h
scripttokenwriter.cpp
-
-add_library(signal SHARED
+add_library(signal
isignal.cpp
isignal.h
signal.cpp
-
-add_library(splines SHARED
+add_library(splines
math_angles.cpp
math_angles.h
math_matrix.cpp
-
-add_library(stream SHARED
+add_library(stream
filestream.cpp
filestream.h
memstream.cpp
-
-add_library(string SHARED
+add_library(string
pooledstring.cpp
pooledstring.h
string.h
-
find_package(LibXml2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIR})
-add_library(xmllib SHARED
+add_library(xmllib
ixml.cpp
ixml.h
xmlelement.cpp