Source

libsqlite3pp / CMakeLists.txt

Amr Hassan d95f2de 







Amr Hassan 1513f10 
Amr Hassan d95f2de 








Amr Hassan 1513f10 

cmake_minimum_required (VERSION 2.6)

#FIND_PACKAGE(sqlite3)

project (libsqlite3pp)

FILE (GLOB SRCS src/*.cpp)
FILE (GLOB HDRS src/*.h)

#IF (WIN32)
#	SET (sqlite3pp_SRCS ${sqlite3pp_SRCS} ${sqlite3pp_HDRS})	// for Visual Studio compatibility
#ENDIF

add_library (sqlite3pp SHARED ${SRCS})
add_library (sqlite3pp_static STATIC ${SRCS})

INSTALL (TARGETS sqlite3pp sqlite3pp_static LIBRARY DESTINATION lib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin)
INSTALL (DIRECTORY src/ DESTINATION include/sqlite3pp FILES_MATCHING PATTERN "*.h")