-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (21 loc) · 706 Bytes
/
CMakeLists.txt
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
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
# Setting up project
PROJECT(CROUTE4ME)
set (CROUTE4ME_VERSION_MAJOR 1)
set (CROUTE4ME_VERSION_MINOR 0)
# Checking for dependencies
FIND_PACKAGE(CURL REQUIRED)
# Set up include pathes
set(JSON_C_DIR ../json_c/)
set(CMOCKA_DIR ../cmocka/)
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${CROUTE4ME_SOURCE_DIR}/include)
INCLUDE_DIRECTORIES(${JSON_C_DIR})
INCLUDE_DIRECTORIES(${CMOCKA_DIR})
# Set up output paths
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
# Set up source directories
ADD_SUBDIRECTORY(src bin)
ADD_SUBDIRECTORY(test test)
ADD_SUBDIRECTORY(examples examples)