输出目录逻辑改为已有定义时不设置
This commit is contained in:
parent
0f4041d8d9
commit
205dc65af8
@ -7,13 +7,18 @@ set(CMAKE_PREFIX_PATH
|
|||||||
"C:/dev/boost"
|
"C:/dev/boost"
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/source-charset:utf-8)
|
add_compile_options(/source-charset:utf-8)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED LIBRARY_OUTPUT_PATH OR LIBRARY_OUTPUT_PATH STREQUAL "")
|
||||||
|
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY OR CMAKE_RUNTIME_OUTPUT_DIRECTORY STREQUAL "")
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(libserial)
|
include_directories(libserial)
|
||||||
add_subdirectory(libserial)
|
add_subdirectory(libserial)
|
||||||
add_executable(SerialOprTest main.cpp)
|
add_executable(SerialOprTest main.cpp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user