“6c0c1b222fa8fdedd36f504632dea8766dda7b35”上不存在“source/git@gitcode.net:taosdata/tdengine.git”
CMakeLists.txt 701 字节
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 11 12 13 14 15 16 17
IF (TD_DARWIN)
  target_include_directories(todbcinst PRIVATE /usr/local/include)
  target_link_directories(todbcinst PUBLIC /usr/local/lib)
  target_include_directories(tconv PRIVATE /usr/local/include)
  target_link_directories(tconv PUBLIC /usr/local/lib)
  TARGET_LINK_LIBRARIES(tconv iconv)
ENDIF ()

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