CMakeLists.txt 536 字节
Newer Older
F
freemine 已提交
1 2 3
PROJECT(TDengine)

IF (TD_LINUX)
F
freemine 已提交
4
  # AUX_SOURCE_DIRECTORY(. SRC)
F
freemine 已提交
5 6
  ADD_EXECUTABLE(tcodbc main.c)
  TARGET_LINK_LIBRARIES(tcodbc odbc)
F
freemine 已提交
7
  ADD_EXECUTABLE(tconv tconv.c)
F
freemine 已提交
8
ENDIF ()
F
freemine 已提交
9 10

IF (TD_WINDOWS_64)
F
freemine 已提交
11 12
  SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /GL")
  SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL")
F
freemine 已提交
13
  # AUX_SOURCE_DIRECTORY(. SRC)
F
freemine 已提交
14
  ADD_EXECUTABLE(tcodbc main.c)
15
  TARGET_LINK_LIBRARIES(tcodbc odbc32 odbccp32 user32 legacy_stdio_definitions os)
F
freemine 已提交
16
  ADD_EXECUTABLE(tconv tconv.c)
F
freemine 已提交
17
  TARGET_LINK_LIBRARIES(tconv tutil)
F
freemine 已提交
18
ENDIF ()