Browse Source

* updated cmake build scripts

master
Alex 'AdUser' Z 13 years ago
parent
commit
804d59e0c4
  1. 2
      CMakeLists.txt
  2. 6
      src/CMakeLists.txt

2
CMakeLists.txt

@ -11,7 +11,7 @@ INCLUDE(CheckFunctionExists)
IF (NOT CMAKE_BUILD_TYPE)
SET (CMAKE_BUILD_TYPE Debug)
SET (CMAKE_C_FLAGS "-ggdb -O0 -Wall -pedantic -DDEBUG")
SET (CMAKE_C_FLAGS "-ggdb -O0 -Wall -pedantic -DDEBUG -std=c99")
ENDIF (NOT CMAKE_BUILD_TYPE)
# set paths

6
src/CMakeLists.txt

@ -1,8 +1,8 @@
add_executable(torrent2json "torrent2json.c")
#add_executable(json2torrent "json2torrent.c")
add_executable(json2torrent "json2torrent.c")
target_link_libraries(torrent2json ${BUILD_LIBS})
#target_link_libraries(json2torrent ${BUILD_LIBS})
target_link_libraries(json2torrent ${BUILD_LIBS})
install(TARGETS torrent2json
install(TARGETS torrent2json torrent2json
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")

Loading…
Cancel
Save