mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-05-18 03:51:35 +08:00
cmake的install可以正常使用,之前是make命令用错了
This commit is contained in:
parent
6070715f55
commit
f7843c7226
@ -21,13 +21,4 @@ set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
|
||||
|
||||
# install
|
||||
set(CMAKE_INSTALL_PREFIX "./release")
|
||||
|
||||
# generate target
|
||||
# add_executable(${PROJECT_NAME} ${DIR_TEST})
|
||||
|
||||
# link libary
|
||||
# target_link_libraries(${PROJECT_NAME} unicstl)
|
||||
|
||||
# install
|
||||
# install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
set(CMAKE_INSTALL_PREFIX "release")
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
aux_source_directory(. DIR_LIB_SRC)
|
||||
aux_source_directory(. SRC_DEMO)
|
||||
|
||||
add_library(unicstl STATIC ${DIR_LIB_SRC})
|
||||
add_library(example STATIC ${SRC_DEMO})
|
||||
|
2
mk.bat
2
mk.bat
@ -4,4 +4,4 @@
|
||||
cmake -B build -G "MinGW Makefiles"
|
||||
|
||||
make -C build
|
||||
@REM make -C install
|
||||
make -C build install
|
||||
|
@ -4,4 +4,4 @@ aux_source_directory(. LIB_SRC)
|
||||
add_library(unicstl STATIC ${LIB_SRC})
|
||||
|
||||
# install
|
||||
# install(TARGETS unicstl DESTINATION bin)
|
||||
install(TARGETS unicstl DESTINATION lib)
|
||||
|
Loading…
Reference in New Issue
Block a user