summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2018-07-02 01:21:26 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2018-07-04 22:44:12 +0200
commite1623f08ffda3602928fec65b1f02c70324188ce (patch)
tree1587c2e441eaa56204ad6e5248cac55aca863ed4 /CMakeLists.txt
parent20740c7acc81f34c49bca508c5d83357d02e48be (diff)
downloadcc4group-e1623f08ffda3602928fec65b1f02c70324188ce.tar.gz
cc4group-e1623f08ffda3602928fec65b1f02c70324188ce.zip
Very basic C4Group extracting implementation
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8a6458..b7bb5cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,15 @@
cmake_minimum_required(VERSION 2.6)
project(cc4group)
-add_executable(cc4group main.cpp)
+set(CMAKE_C_STANDARD 11)
+set(CMAKE_C_STANDARD_REQUIRED ON)
-install(TARGETS cc4group RUNTIME DESTINATION bin)
+if(${CMAKE_C_COMPILER_ID} MATCHES GNU)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wcast-align -Werror")
+endif()
+
+find_package(ZLIB REQUIRED)
+
+add_executable(cc4group main.c)
+target_link_libraries(cc4group PRIVATE ZLIB::ZLIB)
+target_include_directories(cc4group PRIVATE ZLIB::ZLIB)