2025-01-30 23:18:45 -07:00
|
|
|
cmake_minimum_required(VERSION 3.30)
|
2025-01-30 22:21:42 -07:00
|
|
|
project(hardwareDB VERSION 0.0.1)
|
2025-01-30 23:18:45 -07:00
|
|
|
# set(SOURCE_FILES main.cpp)
|
2025-01-30 22:21:42 -07:00
|
|
|
|
2025-01-30 23:48:45 -07:00
|
|
|
# find_package(SQLite3) # This is used when building against the system library target_link_libraries below
|
|
|
|
|
|
2025-01-30 23:18:45 -07:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lists)
|
2025-01-30 22:21:42 -07:00
|
|
|
|
2025-01-30 23:18:45 -07:00
|
|
|
add_executable(${PROJECT_NAME} src/main.cpp)
|
2025-01-30 23:48:45 -07:00
|
|
|
# target_link_libraries(${PROJECT_NAME} SQLite::SQLite3) # This targets the system sqlite3
|
2025-01-30 23:18:45 -07:00
|
|
|
|
2025-01-30 23:48:45 -07:00
|
|
|
add_subdirectory(lib) #This will build the sqlite3 lib from source
|
2025-01-30 22:21:42 -07:00
|
|
|
|
|
|
|
|
|