1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
if( UNIX ) set(sqlite3_SRCS sqlite3.c) set(sqlite3_platform_LIBS "") else( UNIX ) set(sqlite3_SRCS sqlite3.c) set(sqlite3_platform_LIBS "") endif( UNIX ) add_library(sqlite3 ${sqlite3_SRCS}) target_link_libraries( sqlite3 ${sqlite3_platform_LIBS} )