CMakeLists.txt 871 字节
Newer Older
1 2
PROJECT(TDengine)

F
freemine 已提交
3 4 5 6
ADD_EXECUTABLE(todbcinst main.c)
ADD_EXECUTABLE(tconv     tconv.c)

IF (TD_LINUX OR TD_DARWIN)
7
  TARGET_LINK_LIBRARIES(todbcinst odbc odbcinst)
8 9
ENDIF ()

F
freemine 已提交
10
IF (TD_DARWIN)
11 12 13 14 15
  # TODO: later we shall specify directories according to the specific target intel/arm64
  target_include_directories(todbcinst PRIVATE /usr/local/include /opt/homebrew/include)
  target_link_directories(todbcinst PUBLIC /usr/local/lib /opt/homebrew/lib)
  target_include_directories(tconv PRIVATE /usr/local/include /opt/homebrew/include)
  target_link_directories(tconv PUBLIC /usr/local/lib /opt/homebrew/lib)
F
freemine 已提交
16 17 18
  TARGET_LINK_LIBRARIES(tconv iconv)
ENDIF ()

19 20
IF (TD_WINDOWS_64)
  TARGET_LINK_LIBRARIES(todbcinst odbc32 odbccp32 user32 legacy_stdio_definitions os)
F
freemine 已提交
21
  TARGET_LINK_LIBRARIES(tconv taos)
22
  INSTALL(FILES ${EXECUTABLE_OUTPUT_PATH}/todbcinst.exe DESTINATION .)
23
ENDIF ()
F
freemine 已提交
24