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

ADD_EXECUTABLE(tcodbc main.c ../../src/todbc_log.c)

IF (TD_LINUX OR TD_DARWIN)
6 7
  target_include_directories(tcodbc PRIVATE ${ODBC_INCLUDE_DIRECTORY})
  target_link_directories(tcodbc PUBLIC ${ODBC_LIBRARY_DIRECTORY})
F
freemine 已提交
8
  TARGET_LINK_LIBRARIES(tcodbc taos odbc)
F
freemine 已提交
9 10 11 12 13
ENDIF ()

IF (TD_WINDOWS_64)
  SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /GL")
  SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /GL")
F
freemine 已提交
14
  TARGET_LINK_LIBRARIES(tcodbc taos_static odbc32 odbccp32 user32 legacy_stdio_definitions os)
F
freemine 已提交
15 16 17 18 19

  ADD_EXECUTABLE(tms main.cpp)
  TARGET_LINK_LIBRARIES(tms odbc32)
ENDIF ()