[cmake] minimum = "3.15" description = "CMakeLists generator from TOML" [project] name = "cmkr" version = "0.1.4" [fetch-content] toml11 = { git = "https://github.com/ToruNiina/toml11" } filesystem = { git = "https://github.com/gulrak/filesystem" } mpark_variant = { url = "https://github.com/mpark/variant/archive/v1.4.0.tar.gz" } [[bin]] name = "cmkrlib" type = "static" sources = ["src/cmake.cpp", "src/gen.cpp", "src/help.cpp", "src/build.cpp", "src/error.cpp"] include-dirs = ["include"] features = ["cxx_std_11"] link-libs = ["toml11::toml11", "ghc_filesystem", "mpark_variant"] [[bin]] name = "cmkr" type = "exe" sources = ["src/main.cpp", "src/args.cpp"] link-libs = ["cmkrlib"] [[install]] targets = ["cmkr"] destination = "${CMAKE_INSTALL_PREFIX}/bin"