File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 9
9
* .rom
10
10
temp /
11
11
* .1
12
+ build
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 2.8.5)
2
+
2
3
project (patchrom C)
3
- set (CMAKE_C_FLAGS "-g -Wall" )
4
4
5
- add_executable (patchrom main.c)
5
+ set (CMAKE_C_FLAGS " ${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Werror" )
6
6
7
- install (PROGRAMS ${CMAKE_BINARY_DIR} / patchrom DESTINATION bin )
7
+ add_executable ( patchrom main.c )
8
8
9
9
if (NOT DEFINED CMAKE_BUILD_TYPE )
10
10
set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type (Debug or Release)" FORCE)
@@ -17,4 +17,6 @@ ADD_CUSTOM_COMMAND(
17
17
OUTPUTS ${CMAKE_BINARY_DIR} /patchrom.1
18
18
)
19
19
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)
You can’t perform that action at this time.
0 commit comments