This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
47 lines (32 loc) · 1.53 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project(benchmphf)
cmake_minimum_required(VERSION 2.6)
################################################################################
# Define cmake modules directory
################################################################################
SET (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/gatb-core/cmake")
################################################################################
# THIRD PARTIES
################################################################################
# We don't want to install some GATB-CORE artifacts
SET (GATB_CORE_EXCLUDE_TOOLS 1)
SET (GATB_CORE_EXCLUDE_TESTS 1)
SET (GATB_CORE_EXCLUDE_EXAMPLES 1)
# GATB CORE
include (GatbCore)
################################################################################
# TOOL
################################################################################
# we get compilation definitions from the gatb-core part
add_definitions (${gatb-core-flags})
add_definitions("-std=c++0x") # let's force c++11 in this project
# we give the headers directories from :
# - from project source
# - from GATB-CORE source
# - from dsk source
include_directories (src ${gatb-core-includes})
# we define the files to be compiled
set (ProjectFiles main.cpp)
# we define the artifact to be built: the project binary
add_executable (${CMAKE_PROJECT_NAME} ${ProjectFiles})
# we define which libraries to be linked with project binary
target_link_libraries (${CMAKE_PROJECT_NAME} ${gatb-core-libraries})