You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
296 B
23 lines
296 B
8 years ago
|
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)
|