CMakeLists.txt 404 Bytes
Newer Older
berenger-bramas's avatar
berenger-bramas committed
1 2
cmake_minimum_required(VERSION 2.6)

3
# Configuration du projet
berenger-bramas's avatar
berenger-bramas committed
4
project(Lib_scalfmm)
berenger-bramas's avatar
berenger-bramas committed
5 6
set(LIBRARY_OUTPUT_PATH ../lib/${CMAKE_BUILD_TYPE})

7
# Searching all cpp file
berenger-bramas's avatar
berenger-bramas committed
8 9 10 11 12
file(
	GLOB_RECURSE
	source_lib_files
	./*.cpp
)
13

14
# Adding cpp files to project
berenger-bramas's avatar
berenger-bramas committed
15
add_library(
berenger-bramas's avatar
berenger-bramas committed
16
	scalfmm
berenger-bramas's avatar
berenger-bramas committed
17 18 19
	STATIC
	${source_lib_files}
)
20

21
# Adding the entire project dir as an include dir
22 23 24 25
INCLUDE_DIRECTORIES(
     ${CMAKE_BINARY_DIR}/Sources 
)