From 1bdb82634e0bb1b3a386ab19981cd4de86b01ff3 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 20 Feb 2016 15:30:01 +1000 Subject: [PATCH] * update cmake files --- CMakeLists.txt | 2 ++ src/CMakeLists.txt | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index effac06..fe85a82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,8 @@ project(${CNAME} C) cmake_minimum_required(VERSION 2.6) set(CMAKE_INSTALL_PREFIX "/usr/local") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99") +add_definitions("-D_XOPEN_SOURCE=600") include(CTest) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6c973f8..7c0fcde 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) -add_executable(f2b "main.c" "logfile.c" "log.c") +set(SOURCES "main.c" "logfile.c" "log.c" "matches.c") + +add_executable(f2b ${SOURCES}) install(TARGETS f2b RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")