2
0

CMakeLists.txt 666 B

1234567891011121314151617181920212223
  1. # Copyright (c) 2008-2023 the Urho3D project
  2. # License: MIT
  3. # Define target name
  4. set (TARGET_NAME nanodbc)
  5. # Define source files
  6. define_source_files (GLOB_CPP_PATTERNS nanodbc/*.cpp GLOB_H_PATTERNS nanodbc/*.h)
  7. # Define dependency libs
  8. set (INCLUDE_DIRS .)
  9. if (ODBC_INCLUDE_DIRS)
  10. LIST (APPEND INCLUDE_DIRS ${ODBC_INCLUDE_DIRS})
  11. endif ()
  12. if (ODBC_DEFINES)
  13. add_definitions (${ODBC_DEFINES})
  14. endif ()
  15. # Setup target
  16. setup_library ()
  17. # Install headers for building and using the Urho3D library
  18. install_header_files (DIRECTORY nanodbc/ DESTINATION ${DEST_INCLUDE_DIR}/ThirdParty/nanodbc FILES_MATCHING PATTERN *.h) # Note: the trailing slash is significant