Skip to content

Commit 2dbcb9f

Browse files
author
junjie.wan
committed
add CMakeLists.txt file
1 parent 5b4c010 commit 2dbcb9f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CMakeLists.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
project(Tsanalyze)
2+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
3+
4+
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
5+
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src SRC_LIST)
6+
7+
SET(CMAKE_C_COMPILER "/usr/bin/gcc")
8+
message(${CMAKE_SYSTEM_NAME})
9+
10+
11+
IF(${CMAKE_BUILD_TYPE} MATCHES "debug")
12+
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g")
13+
ELSE()
14+
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -std=c11")
15+
ENDIF()
16+
17+
ADD_EXECUTABLE(tsanalyze ${SRC_LIST})
18+
19+

0 commit comments

Comments
 (0)