File: CMakeLists.txt

package info (click to toggle)
python-pyclustering 0.10.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 11,128 kB
  • sloc: cpp: 38,888; python: 24,311; sh: 384; makefile: 105
file content (28 lines) | stat: -rwxr-xr-x 746 bytes parent folder | download | duplicates (2)
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
#
# @authors Andrei Novikov (pyclustering@yandex.ru)
# @date 2014-2020
# @copyright BSD-3-Clause
#


cmake_minimum_required(VERSION 3.10)

# C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# Headers
include_directories(${PROJECT_SOURCE_DIR}/include)

# Build target - build verify test for static library
add_executable(bvt-static static-test.cpp)
add_dependencies(bvt-static pyclustering-static)
target_link_libraries(bvt-static PUBLIC pyclustering-static)

# Build target - build verify test for shared library
add_executable(bvt-shared shared-test.cpp)
add_dependencies(bvt-shared pyclustering-shared)

if(CMAKE_DL_LIBS)
    target_link_libraries(bvt-shared ${CMAKE_DL_LIBS})
endif()