@ -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)
@ -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")