|
caryoscelus |
b99e5b |
cmake_minimum_required(VERSION 2.8)
|
|
caryoscelus |
b99e5b |
|
|
caryoscelus |
b99e5b |
project(ETL)
|
|
caryoscelus |
b99e5b |
|
|
|
e83f04 |
option(ENABLE_TESTS "Enable tests" OFF)
|
|
|
e83f04 |
|
|
caryoscelus |
726e89 |
find_package(Threads)
|
|
caryoscelus |
726e89 |
if (CMAKE_USE_PTHREADS_INIT)
|
|
caryoscelus |
726e89 |
set(HAVE_LIBPTHREAD ON)
|
|
caryoscelus |
726e89 |
endif()
|
|
caryoscelus |
726e89 |
|
|
caryoscelus |
16bf7f |
## for tests
|
|
caryoscelus |
16bf7f |
include_directories(${CMAKE_SOURCE_DIR})
|
|
caryoscelus |
16bf7f |
|
|
caryoscelus |
16bf7f |
## for test to find generated etl_profile.h
|
|
Voldracarno Draconor |
bb9d74 |
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
caryoscelus |
16bf7f |
|
|
caryoscelus |
b99e5b |
add_subdirectory(ETL)
|
|
caryoscelus |
8397e7 |
|
|
|
e83f04 |
if (${ENABLE_TESTS})
|
|
|
e83f04 |
enable_testing()
|
|
|
e83f04 |
add_subdirectory(test)
|
|
|
e83f04 |
endif()
|