CMakeLists.txt 415 Bytes
Newer Older
1
2
project("myproject")
cmake_minimum_required(VERSION 3.1)
3

4
5
set(AMDIS_COMPONENT SEQUENTIAL)
set(AMDIS_VERSION 1.1)
6

7
find_package(AMDIS REQUIRED ${AMDIS_COMPONENT} VERSION>=${AMDIS_VERSION})
8

9
10
11
12
add_executable(mytarget src/mysource.cc)
target_include_directories(mytarget PRIVATE ${AMDIS_INCLUDE_DIRS})
target_compile_definitions(mytarget PRIVATE ${AMDIS_COMPILEFLAGS})
target_link_libraries(mytarget ${AMDIS_LIBRARIES})