aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: bf8dc7b32781cd9beb9d5f1a6fffdd3af766b5a3 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.10)
project(boltzbub LANGUAGES CXX)

add_library(
	boltzbub
		src/lbm.cc
		src/fluid_buffer.cc
		src/boundary_conditions.cc
		src/box_obstacle.cc
)

target_compile_features(
	boltzbub
	PUBLIC
		cxx_std_17
)

target_include_directories(
	boltzbub
	PUBLIC
		${CMAKE_CURRENT_SOURCE_DIR}/src
)

target_link_libraries(
	boltzbub
	PRIVATE
		stdc++fs
)

add_executable(
	lid_driven_cavity
		lid_driven_cavity.cc
)

target_link_libraries(
	lid_driven_cavity
		boltzbub
)

add_executable(
	lid_driven_cavity_with_obstacles
		lid_driven_cavity_with_obstacles.cc
)

target_link_libraries(
	lid_driven_cavity_with_obstacles
		boltzbub
)

add_executable(
	channel
		channel.cc
)

target_link_libraries(
	channel
		boltzbub
)