134 |
kaklik |
1 |
#this is just a basic CMakeLists.txt, for more information see the cmake manpage
|
|
|
2 |
|
|
|
3 |
#add definitions, compiler switches, etc.
|
|
|
4 |
ADD_DEFINITIONS(-Wall -O2)
|
|
|
5 |
|
|
|
6 |
#build a shared library
|
|
|
7 |
ADD_LIBRARY(test SHARED test.c)
|
|
|
8 |
|
|
|
9 |
#for testing the shared library you probably need some test app too
|
|
|
10 |
ADD_EXECUTABLE(testtest testtest.c)
|
|
|
11 |
|
|
|
12 |
#need to link to some other libraries ? just add them here
|
|
|
13 |
TARGET_LINK_LIBRARIES(testtest test)
|
|
|
14 |
|
|
|
15 |
#add an install target here
|
|
|
16 |
#INSTALL_FILES(...)
|
|
|
17 |
#INSTALL_PROGRAMS(...)
|
|
|
18 |
#INSTALL_TARGET(...)
|
|
|
19 |
|