Skip to content

Commit ead9b59

Browse files
author
Noam Preil
committed
Cleanup CMakeLists.txt (step towards #381)
1 parent c94c11f commit ead9b59

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ bin/
99
*.rom
1010
temp/
1111
*.1
12+
build

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
cmake_minimum_required(VERSION 2.8.5)
2+
23
project(patchrom C)
3-
set(CMAKE_C_FLAGS "-g -Wall")
44

5-
add_executable(patchrom main.c)
5+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Werror")
66

7-
install(PROGRAMS ${CMAKE_BINARY_DIR}/patchrom DESTINATION bin)
7+
add_executable(patchrom main.c)
88

99
if (NOT DEFINED CMAKE_BUILD_TYPE)
1010
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type (Debug or Release)" FORCE)
@@ -17,4 +17,6 @@ ADD_CUSTOM_COMMAND(
1717
OUTPUTS ${CMAKE_BINARY_DIR}/patchrom.1
1818
)
1919

20-
INSTALL(FILES ${CMAKE_BINARY_DIR}/patchrom.1 DESTINATION man/man1)
20+
install(TARGETS patchrom DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
21+
INSTALL(FILES ${CMAKE_BINARY_DIR}/patchrom.1
22+
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)

0 commit comments

Comments
 (0)