Browse Source

* update cmake files

master
Alex 'AdUser' Z 9 years ago
parent
commit
1bdb82634e
  1. 2
      CMakeLists.txt
  2. 4
      src/CMakeLists.txt

2
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)

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

Loading…
Cancel
Save