File: platform.cmake

package info (click to toggle)
sqlitebrowser 3.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,472 kB
  • sloc: cpp: 117,707; ansic: 2,143; yacc: 798; lex: 262; sh: 126; xml: 65; python: 27; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if(WIN32)
    include(${CMAKE_CURRENT_LIST_DIR}/platform_win.cmake)
    add_definitions(-DCHECKNEWVERSION)
elseif(APPLE)
    include(${CMAKE_CURRENT_LIST_DIR}/platform_apple.cmake)
    add_definitions(-DCHECKNEWVERSION)
endif()

if(NOT WIN32)
    list(APPEND PLATFORM_LIBS pthread)
endif()

if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
    list(APPEND PLATFORM_LIBS dl)
endif()

# add extra library path for MacOS and FreeBSD
set(EXTRAPATH APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(EXTRAPATH)
    list(PREPEND CMAKE_PREFIX_PATH /usr/local/opt/sqlite/lib)
    list(PREPEND CMAKE_PREFIX_PATH /usr/local/opt/sqlitefts5/lib)
endif()