-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (26 loc) · 980 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 2.8.4)
project(Autobahn_C)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -O3")
set(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${CMAKE_HOME_DIRECTORY}/bin
)
#Source Dir
FILE(GLOB SOURCE_FILES src/*.c)
FILE(GLOB SOURCE_HEADER_FILES src/*.h)
#Menu Library
FILE(GLOB LIB_MENU_FILES lib/menu/*.c)
FILE(GLOB LIB_MENU_HEADER_FILES lib/menu/*.h)
#TextAusgabe Library(Selbstgeschrieben)
FILE(GLOB LIB_PRINTUI_FILES lib/printui/*.c)
FILE(GLOB LIB_PRINTUI_HEADER_FILES lib/printui/*.h)
#Damerau-Levenshtein Algorythmus
FILE(GLOB LIB_Leven_FILES lib/levenshtein/*.c)
FILE(GLOB LIB_Leven_HEADER_FILES lib/levenshtein/*.h)
#Include
add_executable(Autobahn_C
${SOURCE_FILES} ${HEADER_FILES}
${LIB_MENU_FILES} ${LIB_MENU_HEADER_FILES}
${LIB_PRINTUI_FILES} ${LIB_PRINTUI_HEADER_FILES}
${LIB_Leven_FILES} ${LIB_Leven_HEADER_FILES}
${LIB_mxml_FILES} ${LIB_mxml_HEADER_FILES})