mirror of
https://github.com/fumiama/CMoe-Counter.git
synced 2024-11-23 22:00:56 +01:00
fix(compile): "/usr/local/bin/cmoe": not found
This commit is contained in:
parent
c1fe6dc3f5
commit
1af15e75fe
@ -5,11 +5,19 @@ SET(CMAKE_BUILD_TYPE "Release")
|
||||
include_directories("/usr/local/include")
|
||||
link_directories("/usr/local/lib")
|
||||
|
||||
if (BUILD NOT STREQUAL "docker")
|
||||
#在编译选项中加入c99支持
|
||||
add_compile_options(-std=c99)
|
||||
message(STATUS "optional:-std=c99")
|
||||
endif ()
|
||||
|
||||
add_executable(cmoe cmoe.c)
|
||||
add_executable(cmoeditor editor.c)
|
||||
|
||||
target_link_libraries(cmoe spb)
|
||||
target_link_libraries(cmoeditor spb)
|
||||
|
||||
#INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
|
||||
if (BUILD STREQUAL "docker")
|
||||
INSTALL(TARGETS cmoe RUNTIME DESTINATION bin)
|
||||
endif ()
|
||||
INSTALL(TARGETS cmoeditor RUNTIME DESTINATION bin)
|
||||
|
@ -37,7 +37,7 @@ COPY ./CMakeLists.txt .
|
||||
|
||||
RUN mkdir build \
|
||||
&& cd build \
|
||||
&& cmake .. \
|
||||
&& cmake -DBUILD=docker .. \
|
||||
&& make install
|
||||
|
||||
FROM alpine:latest
|
||||
|
Loading…
Reference in New Issue
Block a user