-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (37 loc) · 1.09 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.10)
# define the executable destine
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin-alpha)
set(VERSION_MAJOR 1)
set(VERSION_MINOR 0)
set(VERSION_PATCH 0)
project(lim
VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}
DESCRIPTION "Lua library compactor"
LANGUAGES C
)
# set files
set(MAIN ${CMAKE_BINARY_DIR}/src/main.c)
set(ARULES ${CMAKE_BINARY_DIR}/src/args/rules)
set(APRINT ${CMAKE_BINARY_DIR}/src/args/print)
set(CORE ${CMAKE_BINARY_DIR}/src/core)
set(CCHECK ${CMAKE_BINARY_DIR}/src/core/check-content)
set(CTOOLS ${CMAKE_BINARY_DIR}/src/core/tools)
add_executable(lim
${MAIN}
${ARULES}/check-and-treat.c
${ARULES}/flag-man.c
${APRINT}/help.c
${APRINT}/verbose.c
${CORE}/ident-man.c
${CORE}/process-master.c
${CORE}/treat.c
${CCHECK}/const.c
${CCHECK}/ident.c
${CTOOLS}/queue.c
${CTOOLS}/lim-global-variables.c
${CTOOLS}/read-header-lim.c
${CTOOLS}/string-plus.c
)
# create dinamic header files
set(DIR_CMAKE_H ${CMAKE_CURRENT_SOURCE_DIR}/src/cmake-h)
configure_file(${DIR_CMAKE_H}/version.h.in ${DIR_CMAKE_H}/version.h)