refactor: cleanup project. ready for refactor.
- remove all old code - build directory hierarchy, add basic cmake scripts.
This commit is contained in:
53
materializer/CMakeLists.txt
Normal file
53
materializer/CMakeLists.txt
Normal file
@@ -0,0 +1,53 @@
|
||||
# Check build environment
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/check_materializer_env.cmake)
|
||||
# Import virtools sdk
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/custom_import_virtools.cmake)
|
||||
|
||||
# Create library or executable according to build type
|
||||
if (VSW_MATERIALIZER_BUILD_TYPE STREQUAL "plugin")
|
||||
add_library(VSWMaterializer STATIC "")
|
||||
else ()
|
||||
add_executable(VSWMaterializer "")
|
||||
endif ()
|
||||
# Setup static library sources
|
||||
target_sources(VSWMaterializer
|
||||
PRIVATE
|
||||
# Sources
|
||||
main.cpp
|
||||
)
|
||||
target_sources(VSWMaterializer
|
||||
PUBLIC
|
||||
FILE_SET HEADERS
|
||||
FILES
|
||||
# Headers
|
||||
stdafx.hpp
|
||||
resources.h
|
||||
)
|
||||
# Setup header infomations
|
||||
target_include_directories(VSWMaterializer
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
||||
# Setup C++ standard
|
||||
set_target_properties(VSWMaterializer
|
||||
PROPERTIES
|
||||
CXX_STANDARD 20
|
||||
CXX_STANDARD_REQUIRED 20
|
||||
CXX_EXTENSION OFF
|
||||
)
|
||||
# MSVC specific correction
|
||||
target_compile_definitions(VSWMaterializer
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:UNICODE>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:_UNICODE>
|
||||
)
|
||||
target_compile_options(VSWMaterializer
|
||||
PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/utf-8>
|
||||
)
|
||||
|
||||
# Install binary and headers
|
||||
install(TARGETS VSWMaterializer
|
||||
CONFIGURATIONS Release
|
||||
RUNTIME DESTINATION ${VSW_INSTALL_BIN_PATH}
|
||||
)
|
||||
5
materializer/Materializer.def
Normal file
5
materializer/Materializer.def
Normal file
@@ -0,0 +1,5 @@
|
||||
LIBRARY "SuperScriptMaterializer"
|
||||
|
||||
EXPORTS
|
||||
GetVirtoolsPluginInfoCount
|
||||
GetVirtoolsPluginInfo
|
||||
0
materializer/main.cpp
Normal file
0
materializer/main.cpp
Normal file
8
materializer/resource.h
Normal file
8
materializer/resource.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 10003
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 10000
|
||||
#define _APS_NEXT_SYMED_VALUE 10000
|
||||
#endif
|
||||
#endif
|
||||
0
materializer/stdafx.hpp
Normal file
0
materializer/stdafx.hpp
Normal file
Reference in New Issue
Block a user