# the cmake of scripts is empty

**URL:** https://discourse.cmake.org/t/the-cmake-of-scripts-is-empty/4037
**Category:** Code
**Tags:** os:linux
**Created:** [September 4, 2021, 1:42pm UTC](https://discourse.cmake.org/t/the-cmake-of-scripts-is-empty/4037 "2021-09-04T13:42:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Azaretdodo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/azaretdodo/32/1451_2.png) [@Azaretdodo](https://discourse.cmake.org/u/Azaretdodo)
#### Post date: [September 4, 2021, 1:42pm UTC](https://discourse.cmake.org/t/the-cmake-of-scripts-is-empty/4037/1 "2021-09-04T13:42:05Z")

</div>

hello,

the scripts folder has a CMakeLists empty,

I have tried this following but it miss the tingting syntactic and the file isn’t enough typed :

```auto
cmake_minimum_required( VERSION 3.6 )

cmake_policy( SET CMP0046 NEW )
cmake-policy( SET CMP0053 NEW )

project ( scripts C )
set( PROJECT_VERSION "${BUILD_PKG_VERSION}")
set( PROJECT_HOMEPAGE_URL "https://github.com/hse-project/mpool/tree/master/scripts" )
set( CMAKE_PROJECT_VERSION "${PROJECT_VERSION}" )
set( CMAKE_PROJECT_HOMEPAGE_URL "${PROJECT_HOMEPAGE_URL}" )

message( STATUS "Configuring project ${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_HOMEPAGE_URL} ${BUILD_PKG_TAG} commo>

set( CMAKE_C_STANDART 99 )
set( CMAKE_INSTALL_PREFIX /usr )

include(deb)
include(modules-load.d)
include(sysctl.d)
include(tmpfiles.d)
include(cmake)
include(dev)
include(rpm)
include(systemd)
include(udev)

set( SCRIPTS_DEB_INSTALL_PREFIX ${PROJECT_BINARY_DIR}/deb)
set( SCRIPTS_MODULES-LOAD.D_PREFIX ${PROJECT_BINARY_DIR}/modules-load.d)
set( SCRIPTS_SYSCTL.D_PREFIX ${PROJECT_BINARY_DIR}/sysctl.d)
set( SCRIPTS_TMPFILES.D_PREFIX ${PROJECT_BINARY_DIR}/tmpfiles.d)
set( SCRIPTS_CMAKE_DIR ${PROJECT_SOURCE_DIR}/cmake)
set( SCRIPTS_DEV_PREFIX ${PROJECT_BINARY_DIR}/dev)
set( SCRIPTS_RPM_PREFIX ${PROJECT_BINARY_DIR}/rpm)
set( SCRIPTS_SYSTEMD_PREFIX ${PROJECT_BINARY_DIR}/systemd)
set( SCRIPTS_udev_PREFIX ${PROJECT_BINARY_DIR}/udev)

set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${MPOOL_STAGE_INSTALL_PREFIX}/bin)

add_compile_options(
    ${BUILD_CFLAGS} -g3 -std=gnu99 -Wall -Werror
    -Wlogical-op -Wno-missing-field-initializers -Wuninitialized -Wmaybe-uninitialized
    -Wextra -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wno-unused-parameter
    )

file( WRITE ${CMAKE_BINARY_DIR}/CTestCustom.cmake.in )

configure_file( ${CMAKE_BINARY_DIR}CTestCustom.cmake.in
        ${RPM_BINARY_DIR}mpool-devel.spec.in 
        ${RPM_BINARY_DIR}mpool.spec.in
        ${RPM_BINARY_DIR}mpool-test.spec.in 
)

```

when I run the cmake … in build directory I have following :

```auto

[root@localhost scripts]# ls
CMkeLists.txt build deb modules-load.d sysctl.d tmpfiles.d
bin cmake dev rpm systemd udev
[root@localhost scripts]# cd build
[root@localhost build]# cmake ..
[root@localhhe source directory "/etc/openmpi-4.1.1/mpool/scripts" does not appear to contain CMakeList,s.txt.
Specify --help for usage, or press the help button on the CMake GUI.

```

Thank you in advance to help myself fully run scripts of cmake compiling,

Regards.

Azaretdodo

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [September 4, 2021, 5:30pm UTC](https://discourse.cmake.org/t/the-cmake-of-scripts-is-empty/4037/2 "2021-09-04T17:30:08Z")

</div>

> [@Azaretdodo](#):
>
> ```auto
> # ls
> CMkeLists.txt
> 
> ```

Your file is spelled incorrectly.

Other typos I see:

> [@Azaretdodo](#):
>
> `set( CMAKE_C_STANDART 99 )`

`CMAKE_C_STANDARD`

> [@Azaretdodo](#):
>
> ```auto
> include(deb)
> include(modules-load.d)
> include(sysctl.d)
> include(tmpfiles.d)
> include(cmake)
> include(dev)
> include(rpm)
> include(systemd)
> include(udev)
> 
> ```

These are not files to include from CMake code. Are you trying to declare dependencies? You want `find_package` instead.

I would recommend starting with the [CMake tutorial](https://cmake.org/cmake/help/latest/guide/tutorial/index.html)
