refactor: cleanup project. ready for refactor.
- remove all old code - build directory hierarchy, add basic cmake scripts.
This commit is contained in:
1 parent
4503b5cefc
commit
ecebc42603
84 files changed
+298
-6961
No files matched your search
@@ -0,0 +1,44 @@
|
||||
# Create executable
|
||||
add_executable(VSWDecorator "")
|
||||
# Setup source files
|
||||
target_sources(VSWDecorator
|
||||
PRIVATE
|
||||
# Sources
|
||||
main.cpp
|
||||
)
|
||||
# Setup header files
|
||||
target_sources(VSWDecorator
|
||||
PUBLIC
|
||||
FILE_SET HEADERS
|
||||
FILES
|
||||
# Headers
|
||||
)
|
||||
# Setup header infomations
|
||||
target_include_directories(VSWDecorator
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
||||
# Setup C++ standard
|
||||
set_target_properties(VSWDecorator
|
||||
PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED 20
|
||||
CXX_EXTENSION OFF
|
||||
)
|
||||
# MSVC specific correction
|
||||
target_compile_definitions(VSWDecorator
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:UNICODE>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:_UNICODE>
|
||||
)
|
||||
# Order build as UTF-8 in MSVC
|
||||
target_compile_options(VSWDecorator
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/utf-8>
|
||||
)
|
||||
|
||||
# Install binary
|
||||
install(TARGETS VSWDecorator
|
||||
CONFIGURATIONS Release
|
||||
RUNTIME DESTINATION ${VSW_INSTALL_BIN_PATH}
|
||||
)
|
||||
Whitespace-only changes.
Reference in new issue
Block a user