-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (31 loc) · 1.29 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
#------------------------------------------------------------------------------#
# Copyright: (c) PINTSCH GmbH
#
# CMakeLists for
#------------------------------------------------------------------------------#
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(sci_cc_comp
# LANGUAGES C
# DESCRIPTION 'Build the tcp server for SciCC and connection to ICL'
)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/exec/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib/bin)
#------------------------------------------------------------------------------#
# Disable in-source builds to prevent source tree corruption
#------------------------------------------------------------------------------#
if(" ${CMAKE_SOURCE_DIR}" STREQUAL " ${CMAKE_BINARY_DIR}")
message(FATAL_ERROR '
FATAL: In-source builds are not allowed.
You should create a separate directory for build files.
')
endif()
#------------------------------------------------------------------------------#
# Include subdirectories
#------------------------------------------------------------------------------#
add_subdirectory(common)
add_subdirectory(sci_cc)
add_subdirectory(mw)