Update to cleaned up commons API
[oonf.git] / src / CMakeLists.txt
1 # build framework
2 add_subdirectory(common)
3 add_subdirectory(config)
4 add_subdirectory(builddata)
5 add_subdirectory(core)
6 IF (WIN32 OR ANDROID)
7     add_subdirectory(regex)
8 ENDIF(WIN32 OR ANDROID)
9
10 # add main program
11 set(OONF_SRCS ${OONF_SRCS} olsr_main.c olsr_setup.c)
12
13 # create executable
14 ADD_EXECUTABLE(${OONF_EXE} ${OONF_SRCS})
15
16 # link framework libraries (choose one)
17 IF (OONF_FRAMEWORD_DYNAMIC)
18     include(CMake.link_dynamic)
19 ELSE (OONF_FRAMEWORD_DYNAMIC)
20     include(CMake.link_static)
21 endif(OONF_FRAMEWORD_DYNAMIC)