1
#this is just a basic CMakeLists.txt, for more information see the cmake manpage
3
#add definitions, compiler switches, etc.
4
ADD_DEFINITIONS(-Wall -O2)
6
#build a shared library
7
ADD_LIBRARY(%{APPNAMELC} SHARED %{APPNAMELC}.c)
9
#for testing the shared library you probably need some test app too
10
ADD_EXECUTABLE(%{APPNAMELC}test %{APPNAMELC}test.c)
12
#need to link to some other libraries ? just add them here
13
TARGET_LINK_LIBRARIES(%{APPNAMELC}test %{APPNAMELC})
15
#add an install target here
17
#INSTALL_PROGRAMS(...)