mirror of
https://github.com/allankoechke/SQLiteCpp.git
synced 2026-12-04 17:07:26 +00:00
29 lines
923 B
CMake
29 lines
923 B
CMake
# CMake file for compiling the wrapper static library itself.
|
|
#
|
|
# This allow for easy use of SQLiteC++ as a Git submodule;
|
|
# simply use add_subdirectory (SQLiteCpp/src) into your main CMakeLists.txt file,
|
|
# and link to the "SQLiteCpp" library
|
|
#
|
|
# Copyright (c) 2013 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
|
#
|
|
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
|
# or copy at http://opensource.org/licenses/MIT)
|
|
|
|
# add sources of the wrapper as a "SQLiteCpp" static library
|
|
add_library (SQLiteCpp
|
|
SQLiteC++.h
|
|
Assert.h
|
|
Column.cpp
|
|
Column.h
|
|
Database.cpp
|
|
Database.h
|
|
Exception.h
|
|
Statement.cpp
|
|
Statement.h
|
|
Transaction.cpp
|
|
Transaction.h
|
|
)
|
|
if(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
|
|
set_target_properties(SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC")
|
|
endif(UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"))
|