Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 133 → Rev 134

/programy/C/test/test/src/CMakeLists.txt
0,0 → 1,19
#this is just a basic CMakeLists.txt, for more information see the cmake manpage
 
#add definitions, compiler switches, etc.
ADD_DEFINITIONS(-Wall -O2)
 
#build a shared library
ADD_LIBRARY(test SHARED test.c)
 
#for testing the shared library you probably need some test app too
ADD_EXECUTABLE(testtest testtest.c)
 
#need to link to some other libraries ? just add them here
TARGET_LINK_LIBRARIES(testtest test)
 
#add an install target here
#INSTALL_FILES(...)
#INSTALL_PROGRAMS(...)
#INSTALL_TARGET(...)
 
/programy/C/test/test/src/test.c
0,0 → 1,13
 
#include <stdio.h>
#include <stdlib.h>
 
#include "test.h"
 
 
void do_something()
{
printf("Hello world !\n");
}
 
 
/programy/C/test/test/src/test.h
0,0 → 1,7
#ifndef test_H
#define test_H
 
void do_something();
 
 
#endif
/programy/C/test/test/src/testtest.c
0,0 → 1,8
 
#include "test.h"
 
int main(int argc, char** argv)
{
do_something();
return 0;
}