aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: 14712908121a0fc7107d3a06a9465725d39de4ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cmake_minimum_required (VERSION 3.5.6)
project(ck C)


# Set project directories
set(PROJECT_SOURCE_DIR ./src)
# Set source code locations
set(ckBin_src ${PROJECT_SOURCE_DIR}/main.c)
set(ckLib_src
  ${PROJECT_SOURCE_DIR}/main.c
)
set(ckLib_hdr
#  ${PROJECT_SOURCE_DIR}/tui.hpp
)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)

find_package(SQLite3)

# Include directories
include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_BINARY_DIR})
include_directories(${CMAKE_BINARY_DIR})
include_directories(${SQLITE3_INCLUDE_DIRS})

# Create the shared library
add_library (ckLib SHARED 
    ${ckLib_src}
    ${ckLib_hdr}
)

# Link
add_executable(ck ${ckBin_src})
target_link_libraries (ck ckLib)
target_link_libraries (ck ${SQLITE3_LIBRARIES})