Skip to content

Commit a8c7618

Browse files
author
Sébastien Rombauts
committed
Use latest SQLiteCpp wrapper : no need to include nor link explicitly to sqlite3
1 parent a6b5041 commit a8c7618

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8.12) # first version with add_compile_options(
22
project(SQLiteCpp_Example)
33

44
# add SQLite3 C++ wrapper arround sqlite3 library (and sqlite3 itself provided for ease of use)
5-
include_directories(SQLiteCpp/include)
65
add_subdirectory(SQLiteCpp)
76

87
# add main.cpp example source code
@@ -12,11 +11,11 @@ add_executable(SQLiteCpp_Example ${SOURCE_FILES})
1211
# Link SQLiteCpp_example1 with SQLiteCpp and sqlite3 (and also pthread and dl for linux)
1312
if(UNIX AND NOT APPLE)
1413
# Linux
15-
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3 pthread dl)
14+
target_link_libraries(SQLiteCpp_Example SQLiteCpp pthread dl)
1615
else(UNIX AND APPLE)
1716
# Mac OS
18-
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3 pthread)
17+
target_link_libraries(SQLiteCpp_Example SQLiteCpp pthread)
1918
else()
2019
# Windows
21-
target_link_libraries(SQLiteCpp_Example SQLiteCpp sqlite3)
20+
target_link_libraries(SQLiteCpp_Example SQLiteCpp)
2221
endif()

0 commit comments

Comments
 (0)