23 lines
296 B
CMake
23 lines
296 B
CMake
|
cmake_minimum_required(VERSION 3.4)
|
||
|
|
||
|
project(buildsystem2)
|
||
|
|
||
|
set(var1 123)
|
||
|
|
||
|
set(var2 345)
|
||
|
|
||
|
add_executable(main main.cpp)
|
||
|
|
||
|
add_executable(m_other main.cpp)
|
||
|
|
||
|
add_library(foo foo.cpp)
|
||
|
|
||
|
function(f1)
|
||
|
endfunction()
|
||
|
|
||
|
set(var3 345)
|
||
|
|
||
|
add_library(someImportedLib UNKNOWN IMPORTED)
|
||
|
|
||
|
add_subdirectory(subdir)
|