CMakeLists.txt 663 字节
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 8
  target_include_directories(todbcinst PRIVATE . ${ODBC_INCLUDE_DIRECTORY} ${ODBCINST_INCLUDE_DIRECTORY})
  target_link_directories(todbcinst PUBLIC ${ODBC_LIBRARY_DIRECTORY} ${ODBCINST_LIBRARY_DIRECTORY})
9
  TARGET_LINK_LIBRARIES(todbcinst odbc odbcinst)
10 11
ENDIF ()

F
freemine 已提交
12 13 14 15
IF (TD_DARWIN)
  TARGET_LINK_LIBRARIES(tconv iconv)
ENDIF ()

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