mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-05-17 19:41:36 +08:00
能生成测试的test.exe了
This commit is contained in:
parent
5e7d07c7de
commit
75b0842cb4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
|
||||
# cmake
|
||||
build/
|
||||
release/
|
||||
|
||||
# SI4
|
||||
SIP.si4project/
|
||||
|
@ -22,3 +22,12 @@ 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)
|
||||
|
@ -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)
|
||||
|
@ -1,10 +1,14 @@
|
||||
|
||||
project(test)
|
||||
|
||||
# include
|
||||
include_directories(.)
|
||||
# add src
|
||||
aux_source_directory(. DIR_TEST)
|
||||
|
||||
include_directories(.)
|
||||
|
||||
# generate target
|
||||
add_executable(${PROJECT_NAME} test.c)
|
||||
add_executable(${PROJECT_NAME} ${DIR_TEST})
|
||||
|
||||
# link libary
|
||||
target_link_libraries(${PROJECT_NAME} unicstl)
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("----- unicstl -----\n");
|
||||
// while (1)
|
||||
{
|
||||
// list_test();
|
||||
|
Loading…
Reference in New Issue
Block a user