-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
45 lines (36 loc) · 1.21 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.3)
project(vic)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall")
IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_C_COMPILER clang)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
IF (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(CMAKE_C_COMPILER gcc)
ENDIF (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
#set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "./bin")
set(SOURCE_FILES_TEST src/test/testmain.c
src/test/printf_color.c)
set(SOURCE_FILES_WIN_TEST src/test/win_test_main.c)
set(SOURCE_FILES src/main.c
src/file_struct.c
src/file_struct.h
src/draw_ui.c
src/draw_ui.h
src/file_sl.c
src/file_sl.h
src/termios_set.c
src/termios_set.h
src/main_loop.c
src/main_loop.h
src/main.h
src/normal_loop.c
src/normal_loop.h
src/insert_loop.c
src/insert_loop.h
src/highlight.c
src/highlight.h
src/log_module.c
src/log_module.h src/bottomline_loop.c src/bottomline_loop.h)
add_executable(vic_test ${SOURCE_FILES_TEST})
add_executable(vic_win_test ${SOURCE_FILES_WIN_TEST})
add_executable(vic ${SOURCE_FILES})