PROJECT("kds-s2000w-net")
-SET(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "release")
+SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release")
-IF(CMAKE_BUILD_TYPE STREQUAL "RELEASE")
+IF(CMAKE_BUILD_TYPE STREQUAL "Release")
SET(CMAKE_C_FLAGS "-Wall -Werror" CACHE STRING "compiler flags" FORCE)
ENDIF()
-IF(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
+IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
SET(CMAKE_C_FLAGS "-Wall -g" CACHE STRING "debug compiler flags" FORCE)
ENDIF()
SET(CMAKE_C_COMPILER gcc CACHE STRING "compiler")
IF (RUN_TESTS)
- SET(CMAKE_BUILD_TYPE "DEBUG" CACHE STRING "debug" FORCE)
+ SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "debug" FORCE)
SET(CMAKE_C_FLAGS "-fPIC \
-fprofile-arcs \
-ftest-coverage \
```bash
mkdir build && cd build
-cmake -DCMAKE_BUILD_TYPE=RELEASE ..
+cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
```
```bash
mkdir build && cd build
-cmake -DCMAKE_BUILD_TYPE=RELEASE ..
+cmake -DCMAKE_BUILD_TYPE=Release ..
make package
```
build with debug symboles and debug prints
```bash
-cmake -DCMAKE_BUILD_TYPE=DEBUG ..
+cmake -DCMAKE_BUILD_TYPE=Debug ..
make
```